Page 1 of 1

Page Break on Reports

Posted: Tue Jun 15, 2021 10:36 pm
by icoso
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???

Re: Page Break on Reports

Posted: Wed Dec 15, 2021 4:56 pm
by icoso
Does anyone have a suggestions on how to manage these page breaks on reports? Any idea how I can fix this?

Re: Page Break on Reports

Posted: Wed Mar 16, 2022 12:19 am
by treed
I'm having a similar problem with my longer reports. The problem is probably in a library used by nuBuilder called TCPDF. You might get some response if you take the question there.

Re: Page Break on Reports

Posted: Thu Apr 07, 2022 10:52 am
by miditt
file nurunpdf.php:
after running function nuBuildReport($PDF, $REPORT, $TABLE_ID) the object $GLOBALS['nu_report'] has fields in footers (and page headers) with not correct values.
I don't know if it depends on tcpdf.

Re: Page Break on Reports

Posted: Sat Jul 02, 2022 10:08 am
by vario
Same here, would like footer page break after the footer with no break on last footer, and also no break on first page when break is on header.