Hi,

I'm trying to open a Report on a button-click from a Form (and save that
report afterwards).

Frank Schönheit suggests in this message:

http://dba.openoffice.org/servlets/ReadMsg?list=dev&msgNo=3334

that something like this:

documentDefinition = reports.getByName( sReportName )
Dim  aCommand as new com.sun.star.ucb.Command
aCommand.Name = "open"
aCommand.Handle = -1
oReport=documentDefinition.execute(aCommand,n,null)

should open the Report (which it does - yet, no data is inserted into the
report). When I open the Report from the UI or use the following call,
passing a connection in the properties, the data is filled in:

oReport=reports.loadComponentFromURL(sReportName,"_blank",0,aProp())


Am I missing something in the "execute open"-Method above?

Thanks for any hint
Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to