Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Page Break on Reports

Questions related to nuBuilder Forte Reports and the Report Builder.
Post Reply
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Page Break on Reports

Unread post 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???
icoso
Posts: 181
Joined: Sun Feb 07, 2021 11:09 pm
Been thanked: 1 time

Re: Page Break on Reports

Unread post by icoso »

Does anyone have a suggestions on how to manage these page breaks on reports? Any idea how I can fix this?
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: Page Break on Reports

Unread post 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.
miditt
Posts: 3
Joined: Thu Dec 30, 2021 11:49 am

Re: Page Break on Reports

Unread post 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.
vario
Posts: 148
Joined: Mon Dec 05, 2011 12:23 pm
Location: Newton Abbot, UK
Has thanked: 1 time
Been thanked: 1 time

Re: Page Break on Reports

Unread post 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.
Post Reply