Re: [api-dev] [terrible solution..] Opening *.dbf file - workaround?

2010-08-11 Thread Thomas Krumbein
Hey Bernhard, Bernard Marcelly schrieb: > Message de Thomas Krumbein date 2010-08-11 14:48 : > > Hi, > This old version may not be able to guess the import filter and encoding of > the > dBase document. Yes, that is right... Did you try to add this information? > >dim arg(2) as new com

Re: [api-dev] [terrible solution..] Opening *.dbf file - workaround?

2010-08-11 Thread Bernard Marcelly
Message de Thomas Krumbein date 2010-08-11 14:48 : Hi, This old version may not be able to guess the import filter and encoding of the dBase document. Did you try to add this information? dim arg(2) as new com.sun.star.beans.PropertyValue arg(0).Name = "Hidden" arg(0).Value = true

Re: [api-dev] [terrible solution..] Opening *.dbf file - workaround?

2010-08-11 Thread Thomas Krumbein
Hey, if someone is interested: I found a very terrible solution, but it works: ... dim oFrame as object dim dispatcher as object dim oCalcDoc as object dim sUrl as string sUrl = convertToURL("D:\Daten\AUSKUNFT.DBF") oCalcDoc = starDesktop.loadComponentFromURL("private:factory/scalc

[api-dev] Opening *.dbf file - workaround?

2010-08-11 Thread Thomas Krumbein
Hey, I do have a problem to open a *.dbf file in calc via basic-macro. Typically it is not a problem - I am using the following code and it works fine (in my systems - all OOo > 3.2). It is even not nessessary to pass an FilterName - just open it. ... sURL = convertToURL("D:\Daten\AUSKUNFT.D