Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:36 Go to next message
Hugo Araujo is currently offline Hugo AraujoFriend
Messages: 6
Registered: December 2012
Junior Member
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] Wed, 19 December 2012 02:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 10:09 Go to previous messageGo to next message
Hugo Araujo is currently offline Hugo AraujoFriend
Messages: 6
Registered: December 2012
Junior Member
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 18:04 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 18:15 Go to previous messageGo to next message
Hugo Araujo is currently offline Hugo AraujoFriend
Messages: 6
Registered: December 2012
Junior Member
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 18:55 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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: Tue Mar 19 07:07:19 GMT 2024

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

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

Back to the top