hallo,
Frank S. adviced me to use XDatabaseDocumentUI.loadComponent, instead of
loadComponentFromURL with the particular advantage that
loadComponentFromURL, does not require the active connection, but
calculates it itself. so i tryed this code:
oDB = stardesktop.loadComponentFromURL( getDatabaseDocument("DBName").URL, "_Blank", 0, array() )
REM "getDatabaseDocument" are a serie of Functions I picked from Drew Jenssen
wait 1000
REM here i have a normal opened DBdocument
oForm = oDB.CurrentController.loadComponent(com.sun.star.sdb.application.DatabaseObject.FORM,"FormName",FALSE)
REM here i run in a Execption telling that "No connection to the Database exist"
Thanks for any help
Fernand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org