How can I avoid the column name repeating in JRXML? Is there any attribute for avoiding having the column header in each page when generating a report using JRXML and Jasper?
If the header will always be on a specific page (e.g. the first page), you can add
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
to the band, which will make it only print on page 1. PAGE_NUMBER
is an inbuilt variable that is automatically incremented as the report is generated.
Set The following parameter into your java code if your using java to fill the report:
parameters.put(JRParameter.IS_IGNORE_PAGINATION, Boolean.TRUE);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With