0

我正在尝试通过 JRDocxExporter 导出 docx 文件。问题是当我尝试打印这个生成的文档时,我得到一个关于页边距的错误。我看到这个导出器无法设置 word 文档的边距。

我以这种方式导出文档:

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.0iReport 5.1.0。然后,当我尝试打印从MS Word生成的文档时,我收到以下消息:

在此处输入图像描述

有人可以帮助我吗?

4

1 回答 1

0

我发现这种问题是一个错误,并且已经报告了。

在 Word 中打印 docx 时,边距会导致警告

于 2013-10-03T11:10:15.083 回答