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.DBF")
REM Datei als Calcdokument hidden öffnen
dim arg(1) as new com.sun.star.beans.PropertyValue
arg(0).name = "Hidden"
arg(0).value = true
arg(1).name = "FilterName"
arg(1).value = "dBase"
oCalcDoc = starDesktop.loadComponentFromURL(sURL, "_blank", 0, arg())
' xray oCalcDoc
oTab = oCalcDoc.getSheets().getByIndex(0)
...
Unfortunatly it does not work in OOo 3.0.1 on win 2000. In this case
"loadComponentFromURL" Methode delivers nothing - even not an error. I
believe, that the filter is defect or something else.
The variable "oCalcDoc" is empty, next line will create an error.
Now I need a solution to open this file (*.dbf) as a calc-document - it
is not possible to change the OOo version or the system.
Has someone a workaround or a solution?
Thank you for any hints
Thomas
--
## Marketing deutschsprachiges Projekt
## http://de.openoffice.org - www.openoffice.org
## Vorstand OpenOffice.org Deutschland e.V.
## Mitglieder willkommen: www.OOoDeV.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]