0
我试图通过JRDocxExporter导出docx文件。麻烦的是,当我尝试打印这个生成的文档时,我得到了关于页边距的错误。我看到这个出口商无法设置word文档的边距。以Docx格式生成报表格式不正确
我以这种方式导出文件:
JasperReport reportCompiled = JasperCompileManager.compileReport(pathJrxmlFile);
JasperPrint reportFilled = JasperFillManager.fillReport(reportCompiled, null, dataSource);
JRDocxExporter exp = new JRDocxExporter();
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,pathFile);
exporter.setParameter(JRExporterParameter.JASPER_PRINT,reportFilled);
exporter.exportReport();
我使用JasperReports的5.0.0和的iReport 5.1.0。然后,当我尝试打印从微软Word生成的文件我得到这个消息:
有人可以帮我吗?
'我得到一个关于页边距的错误 - 什么错误? “我看到这个出口商无法设置word文档的边距。” - 你是什么意思? –
当我尝试打印时,发现第1部分的边距超出了可打印区域。但在IReport上,我设置了文档的边距。 – Skizzo
你可以添加截图吗?你在* iReport *中使用了哪些出口商?你正在使用什么版本的* JasperReports API *和* iReport *? –