Requirement:
We are using a Table component in Jaspersoft Studio and would like to have a page break at the line that is a multiple of 20. Is this possible?
Solution:
We can achieve this requirement by creating a group and giving it an expression as below.
<group name="pageBreakGroup" isStartNewPage="true"> <groupExpression><![CDATA[(int)($V{REPORT_COUNT} - 1) / 20]]></groupExpression> </group>
Attached pageBreakTable.jrxml report can be viewed for reference. The report can be run using the sample DB adapter in Studio.
___________________________________________________________________________________________________________________________________________
Ref. Case #02249391
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now