Jump to content
  • (6.8) Export to PPTX will fail if Frames, Subreports and Images are present

    Assigned User teodord
    CategoryBug report
    Component: 11088

    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).

    Attachments: reports.zip

    User Feedback

    Recommended Comments

    Changed Resolution from Open to Fixed

    Changed Status from Confirmed to Resolved

    Changed Assigned User from - to @teodord

    Hi,This was fixed and will be available with the next release.Thanks,Teodor
    Link to comment
    Share on other sites

  • Create New...