How to manually insert page breaks in JasperReports based on specific conditions

I want to check if there is still a condition in the subheadings for page breaks.

I print customernamein a pdf report using the jasper template, I need to break if the client name is different and the new client name should be printed on a new page. How to do it?

+3
source share
1 answer

Several different features:

Page break

  • Add Page Break
  • Change it PrintWhenExpression

Report Group

  • Right-click the report name (in the Report Inspector)
  • Select Add Report Group
  • Specify a group name (e.g. UniqueCustomer)
  • Set Group by value in the field customername
  • Click Finish
+4
source

Source: https://habr.com/ru/post/1763618/


All Articles