准备 JasperPrint 以便导出

Contents
[ ]

以下代码片段演示了如何创建 JasperPrint 对象以准备报告以便进一步的图像导出。

Java

JasperReport jasperReport = JasperCompileManager.compileReport("shapesReport.jrxml");
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, null, new JREmptyDataSource());