How To…Display a Group Footer on Every Page

Question

“How do I ensure that the group footer will display on every page of my report?”

Solution

This can be helpful if you need a page summary band, similar to the page footer band but snaps to the last detail band.

Use the DetailBand.BeforePrint event to determine if the group will break before space runs out on the page.  If not, manually add the group drawcommands below the last detail line leaving enough space to print.  This will ensure that the group footer prints on every page similar to the Group Header.

Download: GroupFooterOnEveryPage.zip

Sample Delphi code: