Skip to main content



      Home
Home » Archived » BIRT » emitter nativexls in BIRT Runtime 3.7.2
emitter nativexls in BIRT Runtime 3.7.2 [message #991385] Tue, 18 December 2012 15:36 Go to next message
Eclipse UserFriend
Hello, I am sorry if i didn´t put the topic in the correct place.

I download org.eclipse.birt.report.engine.emitter.nativexls_1.0.0.201110122114.jar and put it in eclipse\plugins\ folder and delete the org.eclipse.birt.report.engine.emitter.excel.config_myversion.jar
and org.eclipse.birt.report.engine.emitter.prototype.excel_myversion.jar. I did this because my XLS files were too big and it worked.

Then i put the org.eclipse.birt.report.engine.emitter.nativexls_1.0.0.201110122114.jar file in the C:\birt-runtime-3_7_2\ReportEngine\lib\. I then create it a script with genReport.bat in birt runtime 3.7.2 but it continue to generate large xls files. Then i try to extracted the org.eclipse.birt.runtime.version.jar comment the edited plugin.xml


<!--import from org.eclipse.birt.report.engine.emitter.prototype.excel
<extension name="excel emitter" point="org.eclipse.birt.report.engine.emitters">

<emitter class="org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter" format="xls" id="org.eclipse.birt.report.engine.emitter.prototype.excel" mimeType="application/vnd.ms-excel" pagination="no-pagination"/>
</extension>-->

And

<!--import from org.eclipse.birt.report.engine.emitter.config.excel

<extension name="Excel Emitter Descriptor" point="org.eclipse.birt.report.engine.emitter.config">

<descriptor class="org.eclipse.birt.report.engine.emitter.config.excel.ExcelEmitterDescriptor" id="org.eclipse.birt.report.engine.emitter.prototype.excel">
</descriptor>
</extension>-->

but i get an Error: Could not find or load main class org.eclipse.birt.report.engine.api.ReportRunner

Please help me is urgent

Thank you

Re: emitter nativexls in BIRT Runtime 3.7.2 [message #991421 is a reply to message #991385] Tue, 18 December 2012 21:41 Go to previous messageGo to next message
Eclipse UserFriend
Have you read over this blogpost:
http://birtworld.blogspot.com/2011/07/replacing-default-birt-xls-emitter.html

BTW my guess on the error is the jar was signed. Take a look at this bug for a work around:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350662

Jason
Re: emitter nativexls in BIRT Runtime 3.7.2 [message #991459 is a reply to message #991421] Wed, 19 December 2012 05:09 Go to previous messageGo to next message
Eclipse UserFriend
The examples in that link are more directed to the Webviewer but i try to extract the org.eclipse.birt.report.engine.emitter.nativexls_1.0.0.201110122114.jar and copy the jar files in it
dom4j-1.6.1.jar
geronimo-stax-api_1.0_spec-1.0.jar
poi-3.7-20101029.jar
poi-ooxml-3.7-20101029.jar
poi-ooxml-schemas-3.7-20101029.jar
xmlbeans-2.3.0.jar
to C:\birt-runtime-3_7_2\ReportEngine\lib\ and nothing,
steal large xls files
Re: emitter nativexls in BIRT Runtime 3.7.2 [message #991549 is a reply to message #991459] Wed, 19 December 2012 13:04 Go to previous messageGo to next message
Eclipse UserFriend
Did you set the emitterid? In the snippet below did you change it to the the native id?

EXCELRenderOption options = new EXCELRenderOption();
options.setOutputFormat("xls");
options.setOutputFileName("output/resample/ps.xls");
options.setOption(IRenderOption.EMITTER_ID, "org.eclipse.birt.report.engine.emitter.prototype.excel");
IRenderTask task = engine.createRenderTask(document);
task.setRenderOption(options);

Jason
Re: emitter nativexls in BIRT Runtime 3.7.2 [message #991555 is a reply to message #991549] Wed, 19 December 2012 13:15 Go to previous messageGo to next message
Eclipse UserFriend
Sorry to ask, but where do i do that?
Re: emitter nativexls in BIRT Runtime 3.7.2 [message #992047 is a reply to message #991555] Thu, 20 December 2012 13:55 Go to previous message
Eclipse UserFriend
That code was for the API. Meaning if you are using the report engine in your Java app. Are you using the viewer? Can you give some more detail?

Jasoon
Previous Topic:JS Error after upgrading from 2.2.2 to 3.7.2
Next Topic:Specifying size in percentages
Goto Forum:
  


Current Time: Sat Jul 05 07:44:10 EDT 2025

Powered by FUDForum. Page generated in 0.28677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top