> Hi Thomas, > > On 28.11.08 23:28, Thomas Friese wrote: >> 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? >> > aCommand.Argument is a sequence where you set the same arguments as aProp.
Thanks, that (passing the active connection) does the trick. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]