Hi Sergio,
Sergio Corato wrote:
Is there a way to export-import (between two db) a Sun Report Builder
report by API?
I can think two:
1. open the two database and copy-paste by executing ucb.Command (?);
2. unzip the file.odb and insert the file (report, ?) needed.
I would prefer 3 :-) insert the reportdefinition from db1 into db2.
Please have a look at
http://svn.services.openoffice.org/opengrok/xref/Current%20(trunk)/dbaccess/source/ui/misc/UITools.cxx#1816
- get the report definition from the getReportDocuments() from the
database doc of db1
- create a new instance of report defintions from db2 with the report as
argument (see code)
- insert new created instance into db2 report documents
- oj
It would be great even if I know which solution, or other one, is
possible (or better), because I have to learn how-to do...
---------------------------------------------------------------------
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 Schr?der, Wolfgang Engels, Wolf Frenkel
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]