Ocke Janssen ha scritto:
Hi Sergio,

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

Well, it's not very clear to me ;-) (OOoBasic and some Python user), something like Turkish, but it's a good point to start!

Is the report definition:
oDb = oContext.getByName(HIDB)
oDatabase = oDb.DatabaseDocument
oReportDefinition = oDatabase.getReportDocuments.getByName("Rapporto1").getComponent.Detail.ReportDefinition
?

Thx
Sergio

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

Reply via email to