Search code examples
jasper-reports

Varying pagination in different formats of a report


Using iReport, I am generating reports to be viewed in multiple formats. Is it possible for me to ignore pagination only for particular formats like HTML and let it be true for the rest?

With isIgnorePagination="false" the HTML preview appears in chunks. However, setting it to true makes the PDF output a single page.

Any suggestions?


Solution

  • Why yes you can. Add the the IS_IGNORE_PAGINATION with the appropriate value before you export your report. You can set the value at run time based on what your export format is.

    params.put("IS_IGNORE_PAGINATION", true);