'Prevent table group footer starting on new page?

I have a table in a detail band and it consists of group footer as well.Data gets binding dynamically and grouped based on a column value.I'm displaying total in group footer.

Is there any way to prevent the group footer from starting a new page? If the group footer would normally be on its own at the start of the new page, then I'd rather bring one of the lines from the end of the previous page onto the new page as well.



Solution 1:[1]

Report and dataset groups have an attribute called preventOrphanFooter. Set it to true and the group footer will not be allowed to appear by itself in a page. See some details here.

The attribute is present in JasperReports 6.4.3 and newer.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 dada67