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.
Best regards,
Ocke
Thanks for any hint
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ocke Janssen Tel: +49 40 23646 661, x66661
Dipl. Inf(FH) Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55 mailto:[EMAIL PROTECTED]
D-20097 Hamburg http://www.sun.com/staroffice
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]