Using subreports and images in frames will corrupt the elementIndex field in class net.sf.jasperreports.engine.export.ooxml.JRPptxExporter. This will result in duplicate numbers and image names, which will prevent the report from being exporting to pptx.
Example of the resulting Error (the Number 3 was used twice):
Caused by: java.util.zip.ZipException: duplicate entry: ppt/media/img_0_0_3_0.png
at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:232)
at net.sf.jasperreports.engine.export.zip.AbstractZip.zipEntries(AbstractZip.java:70)
at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReportToStream(JRPptxExporter.java:531)
at net.sf.jasperreports.engine.export.ooxml.JRPptxExporter.exportReport(JRPptxExporter.java:307)
To reproduce the error, run the report "text.jrxml" from the attatchments.
Edit: The bug was introduced in Version 6.8 (Version below 6.8 aren't affected).
Recommended Comments