Page Break on Reports
Posted: Tue Jun 15, 2021 10:36 pm
When checking the box for Page breaks in the group properties, A Page break in the Header section should come BEFORE the header is printed, HOWEVER, a Page Break in the Footer should be AFTER the footer is printed, not Before. OR at least an option should be given to have it before or after. Most section footers would have some type of sub-Totals in them that pertains to the data above that section footer. So you wouldn't want to print all of the data records for a group, and then have a page break and then print the Sub-Totals on the next page along with the next set of data or the next group of data's heading. For Example you have:
Report Heading
================================================== if Page break is checked in ANY Heading section - then it breaks before Heading is printed.
Page Heading
==================================================
Group 1 Header
==================================================
Group 2 Header
==================================================
Data records....
Data records....
Data records....
================================================== if Page break is checked in ANY FOOTER section - then it breaks before Footer is printed. It should be AFTER footer data is printed.
Group 2 Footer -- Sub Totals
==================================================
Data records....
Data records....
Data records....
==================================================
Group 2 Footer -- Sub Totals
==================================================
Group 1 Footer -- Sub Totals
Logically PAGE BREAK Should be here NOT above Group Footer sub totals. After Group data is printed.
==================================================
Page Heading
==================================================
Group 1 Header
==================================================
Group 2 Header
==================================================
Data records....
Data records....
Data records....
How can I change this in the code???
Report Heading
================================================== if Page break is checked in ANY Heading section - then it breaks before Heading is printed.
Page Heading
==================================================
Group 1 Header
==================================================
Group 2 Header
==================================================
Data records....
Data records....
Data records....
================================================== if Page break is checked in ANY FOOTER section - then it breaks before Footer is printed. It should be AFTER footer data is printed.
Group 2 Footer -- Sub Totals
==================================================
Data records....
Data records....
Data records....
==================================================
Group 2 Footer -- Sub Totals
==================================================
Group 1 Footer -- Sub Totals
Logically PAGE BREAK Should be here NOT above Group Footer sub totals. After Group data is printed.
==================================================
Page Heading
==================================================
Group 1 Header
==================================================
Group 2 Header
==================================================
Data records....
Data records....
Data records....
How can I change this in the code???