Birt不生成PDF和XLS报告

tan*_*bee 6 java birt spring-mvc

我正在使用Birt 4.4并且我的html报告工作正常但xls和pdf文件抛出不支持输出格式错误

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)
Run Code Online (Sandbox Code Playgroud)

我试图输出格式设置为xls_spudsoftemitterID,但没有运气

这是代码

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());
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

谢谢

tan*_*bee 7

发现问题是什么,万一有人想知道如何解决这个问题.为pdf报告指定发射器 pdfOptions.setEmitterID(RenderOption.OUTPUT_EMITTERID_PDF),对于uk.co.spudsoft.birt.emitters.excel类路径中缺少xls