same report but not the same result [message #212339] |
Thu, 18 January 2007 08:57  |
Eclipse User |
|
|
|
Originally posted by: alice.mange.gmail.com
Hi community !
I download the example org.eclipse.birt.examples.rcpengine and I use the
code from the method previewReport from View.java, to integrate my report
in my application.
If I executed the example org.eclipse.birt.examples.rcpengine and I
choosed a report A, it is nearly ok, but I have a result.
(When I talk about result it is an html code which was return by bos :
ByteArrayOutputStream bos = new ByteArrayOutputStream();
options.setOutputStream(bos);
options.setOutputFormat("html");
task.setRenderOption(options);
-> I can see a html code with a title for example
Now I use the same code but from my application, I open the same report A,
and now I haven't result.
->the html code contains a table with nothing, no title nothing.
Do you know what could be a source of this problem ?
Thank you
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: same report but not the same result [message #215302 is a reply to message #214964] |
Tue, 30 January 2007 16:25  |
Eclipse User |
|
|
|
Now it is somewhat clear to me :>
If you are building it this way, you need to add the libs in the Runtime
download( ReportEngine/lib) and set a BIRT home to the report engine
directory.
The RCP example assumes all the BIRT plugins are installed in your
application. If you just want to use the engine download the runtime, unzip
and
set appropriate values. ie
http://wiki.eclipse.org/index.php/Simple_Execute
Jason
"Alilou" <alice.mange@gmail.com> wrote in message
news:c7dcdd66138e92caf45b9472c98c4818$1@www.eclipse.org...
> Hi Jason,
> I think you didn't understand my problem (or i didn't understand your
> answer lol).
> Because if i open a report with the example
> org.eclipse.birt.examples.rcpengine, my report have no problem, no error
> with dataSource.
> But If I want to open my report with my java application I have the error
> I explain you... In my java application I didn't use a Plug-in
> dependencies, I add library in my classPath :
> here is an extract of my classPath :
>
> <classpathentry kind="lib"
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.model_2.1.1. v20060926-0959.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.core_2.1.1.v2006092 6-0959.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.data.oda.xml _2.1.1.v20060926-0959.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.engine.emitt er.html_2.1.1.v20060926-0959.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.engine.emitt er.pdf_2.1.1.v20060926-0959.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.engine_2.1.1 .v20060926-0959.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.core.contenttype_3.2.0.v 20060601a.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.core.jobs_3.2.0.v2006060 1a.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.core.runtime.compatibili ty_3.1.100.v20060601a.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.core.runtime_3.2.0.v2006 0601b.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.datatools.connectivity.o da.consumer_3.0.2.200608301.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.datatools.connectivity.o da.flatfile_3.0.2.200608311.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.datatools.connectivity.o da_3.0.2.200608301.jar "/>
> <... path=" C:/brt-2_1_1/RE/plugins/org.eclipse.osgi_3.2.0.v20060601.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.apache.batik.pdf/lib/pdf-transco der.jar "/>
> <... path="C:/brt-2_1_1/RE/lib/com.ibm.icu_3.4.4.1.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/commons-cli-1.0.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/commons-codec-1.3.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/coreapi.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/dataadapterapi.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/dteapi.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/engineapi.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/flute.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/itext-1.3.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/js.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/modelapi.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/sac.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/scriptapi.jar"/>
> <... path="C:/brt-2_1_1/RE/lib/Tidy.jar"/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.data.oda.jdb c_2.1.1.v20060922-1058/drivers/postgresql-8.0-310.jdbc3.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.data.oda.jdb c_2.1.1.v20060922-1058/drivers/ojdbc14.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.birt.data.oda_2.1.1.v2 0060922-1058/oda.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity _0.9.1.20060831/connectivity.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .ui_0.9.1.200608251/connectivityui.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .ui.dse_0.9.1.200608251/dse.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .oda.design.ui_3.0.2.200609201.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .oda.design_3.0.2.200608301.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .oda.designer.finfo_0.9.1.200609191.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .oda.finfo_0.9.1.200609191.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .oda.flatfile.ui_3.0.2.200608301.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.datatools.connectivity .oda.profile_3.0.2.200608301.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.apache.derby.core_10.1.2.1/der by.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.apache.xerces_2.8.0.v200606131 651/resolver.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.apache.xerces_2.8.0.v200606131 651/xercesImpl.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.apache.xerces_2.8.0.v200606131 651/xml-apis.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.core.runtime.compatibi lity.registry_3.2.0.v20060602/runtime_registry_compatibility .jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.birt.data.oda.adapter. dtp_2.1.1.v20060922-1058.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.birt.report.data.oda.j dbc.ui_2.1.1.v20060922-1058.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.birt.report.data.oda.x ml.ui_2.1.1.v20060922-1058.jar "/>
> <...
> path=" C:/PgmFile/Ecp3.2/plugins/org.eclipse.birt.report.data.adapt er_2.1.1.v20060922-1058.jar "/>
> <... path="C:/PgmFile/Ecp3.2/plugins/org.junit_3.8.1/junit.jar"/ >
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.data_2.1.1.v2006092 2-1058.jar "/>
> <...
> path=" C:/brt-2_1_1/RE/plugins/org.eclipse.birt.report.data.oda.jdb c_2.1.1.v20060922-1058/oda-jdbc.jar "/>
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04819 seconds