问题
I want to check if else condition in subreports for page break like.
I am printing customername
in pdf report using jasper template, i need to break the
page if the customer name is different and the new customer name should be printed in new page. How to do that?
回答1:
A couple of different possibilities:
Page Break
- Add a Page Break
- Change its PrintWhenExpression
Report Group
- Right-click on the report name (in the Report Inspector)
- Select Add Report Group
- Provide a Group Name (e.g., UniqueCustomer)
- Set the Group by value to the
customername
field - Click Finish
来源:https://stackoverflow.com/questions/3659326/how-to-manually-insert-page-break-in-jasperreports-on-basis-of-certain-condition