Hallo Siegfried,

> Wenn ich ein Formular mit einem Macro Öffnen möchte, lautet dieses wie
>  unten. Was muß ich ändern, wenn ich einen Bericht mit den Namen
> "BerichtallerKinder" mit einem Macro öffnen will.
> 
> 
> SUB KinderProKG
>          REM  Start direkt nach dem Start der Datenbank
>           oController = ThisDatabaseDocument.CurrentController
>          If NOT ( oController.isConnected() ) Then
>                  oController.connect()
>          End If
> 
> oController.loadComponent(com.sun.star.sdb.application.DatabaseObject.FORM,
> "BerichtallerKinder",FALSE) END SUB

Den entscheidenden Hinweis hatte doch Frank schon in dem vorherigen Thread 
gegeben:
http://api.openoffice.org/docs/common/ref/com/sun/star/sdb/application/XDatabaseDocumentUI.html
und von dort eventuell weiter nach
http://api.openoffice.org/docs/common/ref/com/sun/star/sdb/application/DatabaseObject.html
ergibt
Constants
TABLE   denotes a table in a database  
QUERY   denotes a query in a database document  
FORM    denotes a form in a database document  
REPORT  denotes a report in a database document  

Also: aus FORM mache REPORT

... Du bewegst Dich ja auf der Ebene der Datenbankobjekte (DatabaseObject) und 
willst davon ein bestimmtes ansprechen. Es gibt davon 4 verschiedene ...

Ich hoffe, dass das so passt.

Gruß

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Antwort per Email an