I am developing a Java application to generate reports from “.jasper” report files created in iReports. When the reports are generated in PDF, I would like to retain column labels and pagination info on each individual page. However, when exported as an excel spreadsheet or pure HTML, I only want the column headers once. Can anyone suggest settings that I can pass programmatically in Java to the Jasper API to handle this?
I am developing a Java application to generate reports from .jasper report files created
Share
There are a couple settings you need to setup in the exporter to export it as one page:
Now this only gets you part of the way. Since it will still print the page header and page footer once each. You need to add a boolean parameter to the report that indicates whether or not to print those bands. You would set this in the
printWhenExpressionfor the bands.