【问题标题】:Birt not generating PDF and XLS reportBirt 不生成 PDF 和 XLS 报告
【发布时间】:2014-09-26 00:49:49
【问题描述】:

我使用的是 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)

我尝试将输出格式设置为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());

有什么想法吗?

谢谢

【问题讨论】:

    标签: java spring-mvc birt


    【解决方案1】:

    找到问题所在,以防有人想知道如何解决此问题。为 pdf 报告 pdfOptions.setEmitterID(RenderOption.OUTPUT_EMITTERID_PDF) 指定发射器,对于 xls,它在类路径中缺少 uk.co.spudsoft.birt.emitters.excel

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-07-07
      • 1970-01-01
      • 1970-01-01
      • 2015-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多