Birt does not generate PDF and XLS report

I am using Birt 4.4 and my html report works fine, but the xls and pdf files are deleted. The output format is not supported.

org.eclipse.birt.report.engine.api.EngineException: The output format xsl is not supported. at org.eclipse.birt.report.engine.api.impl.EngineTask.setupRenderOption(EngineTask.java:2031) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:96) 

I tried setting the output format to xls_spudsoft and emitterID , but no luck

Here is the code

 EXCELRenderOption xlsOptions = new EXCELRenderOption(options); xlsOptions.setEmitterID("uk.co.spudsoft.birt.emitters.excel.XlsEmitter"); xlsOptions.setOutputFormat("xls_spudsoft"); response.setHeader("Content-Disposition", "attachment; filename=\"" + reportName + "\""); xlsOptions.setOutputStream(response.getOutputStream()); 

any ideas?

thanks

+6
source share
1 answer

Found what the problem is if someone wants to know how to fix it. Specify the emitter for the PDF pdfOptions.setEmitterID(RenderOption.OUTPUT_EMITTERID_PDF) , and for xls it is missing uk.co.spudsoft.birt.emitters.excel from the classpath

+7
source

Source: https://habr.com/ru/post/973272/


All Articles