我正在使用jasperreport和aspose库(aspose的ppt导出器)生成ppt报告。我正在尝试从项目中删除aspose,并使用jasperreports 5.0中的ppt导出器。问题是,目前生成的报告需要一个外部.pot文件,该文件是使用aspose添加的:
com.aspose.slides.jasperreports.JRPptExporter exporter = new com.aspose.slides.jasperreports.JRPptExporter();
......
exporter.setParameter(com.aspose.slides.jasperreports.JRPptExporterParameter.PPT_TEMPLATE_PRESENTATION, pptTemplate);
exporter.exportReport();我在jasperreports的JRExporterParameter中找不到任何类似的参数,也找不到任何有效的解决方案。有没有使用外部.pot文件的方法?我在考虑从.pot文件创建第二个JasperPrint对象,然后导出两个JasperPrint对象设置JRExporterParameter.JASPER_PRINT_LIST
发布于 2013-04-22 04:52:04
我不确定这是否适合您,但我已经编写了一个自定义PPTX导出器(只支持pptx,不支持二进制ppt),它基于Apache POI。POI element可以由你自己的模板pptx初始化(在我的版本中还没有实现)。
https://code.google.com/p/pptx-shape-exporter/
如果你对此感兴趣,请给我写封信。
https://stackoverflow.com/questions/15744891
复制相似问题