In jasperreports how to force page break before a group title if there is no room for any subsequent rows

StackOverflow https://stackoverflow.com/questions/17440483

  •  02-06-2022
  •  | 
  •  

Question

Is there a way of forcing a page break before a group title if there is no room for ANY of the subsequent rows? It would be nice to be able to query the amount of space left on the current page.

Was it helpful?

Solution

There is a property called min height to start new page you will find on the group header. Make this a sum of the height of your detail row and the group header as the lowest amount (more if you want it to have at least 2 rows of detail). I also suggest setting the Keep Together to true as well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top