I am trying to implement a batch export similar to one here (as in the link) in jasper reports.
Please give pointers.
What I have:
1. A Portrait Template
2. A Landscape Template
3. Order in which I need to generate the reports
4. Same Bean Datasource with filter queries for each template to fill
What I need:
Generate the reports separately and merge all the generated JasperPrint objects and tweak the Page Nos
Since you are generating the reports and then merging it, current page number and total pages are available only during the export, based on the number of reports you merge. We solved a similar issue using generic elements. You need to write your custom logic to handle the page number inside the handler you create.