|
|
|
|
Re: Unable to print image on Excel output in BIRT 3.7.1 [message #1721666 is a reply to message #764673] |
Fri, 29 January 2016 04:15 |
Praveena Thangavel Messages: 1 Registered: January 2016 |
Junior Member |
|
|
We can't display image in BIRT report in Excel format by using default excel emitter if you are using Birt Runtime-3.7.1.
Instead , You can use Native Excel Emitter. I have tried.. I successfully export to excel format with the perfect view.
Use the Native Excel Emitter for Excel format, instead of default excel emitter.
You can download plugin from here:
1. Extract the jar using any of any of the archive software(eg. winzip, 7-zip,etc) and keep it separately.
2. After extracting the jar file, copy the 'jar' files in the 'lib' folder into your own project's folder (webapp/web-inf/lib).
3. And also add the original downloaded jar (org.eclipse.birt.report.engine.emitter.nativexls.jar) into your project's folder (webapp/web-inf/lib).
4. And add the class path (Right click Project → Configure Build Path → Add Jar → Select the jar files you have added from the lib folder).
Note: For Maven Projects only
If you are using Maven Projects, then you should add the jar files in your maven repository.
In command prompt, type the following commands:
mvn install:install-file -Dfile=c:\kaptcha.jar -DgroupId=com.google.code
-DartifactId=kaptcha -Dversion={version} -Dpackaging=jar
Instead of follow the step 4, follow the below steps:
1. Right click Project → Config Build Path → Add Variable.
2. Select your maven repository variable.
3. Click 'Extend' button.
4. Under select your jar and click 'ok' button.
You should also add the jar files which is extracted from the org.eclipse.birt.report.engine.emitter.nativexls.jar (in lib folder)
In java, under the Excel Format option, add the following line also:
ExcelRenderOption option=new ExcelRenderOption();
option.setOption(IRenderOption.EMITTER_ID,"org.eclipse.birt.report.engine.emitter.nativexls");
|
|
|
Powered by
FUDForum. Page generated in 0.03191 seconds