[#3197] - JRGraphics2DExporter.exportReportToGraphics2D() does not export all the pages

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

JRGraphics2DExporter.exportReportToGraphics2D() does not export all the pages JRPrintPage from the JasperPrint. It only exports the "startIndex" page even when JRExporterParameter.PAGE_INDEX is not set.

Code Snippet from exportReportToGraphics2D():

//<CODE SNIPPET>
List<JRPrintPage> pages = jasperPrint.getPages();
...
...
try
{
JRPrintPage page = pages.get(startPageIndex);
exportPage(page);
}
//<END OF CODE SNIPPET>

Expected behavior: Loop through and export all pages from startPageIndex to endPageIndex.

v5.2.0
sanyampandey's picture
Joined: Sep 30 2013 - 2:41pm
Last seen: 8 years 10 months ago
Feedback
randomness