Re: PDF Footer [message #2411 is a reply to message #2410] |
Wed, 20 January 2010 15:50 |
AJM
Messages: 2371 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
The footer is printed as follows:
Whenever the AddPage() function is called it does the following:
- call endPage() to end the current page (if there is one).
- call startPage() to start a new page.
The endPage() function calls setFooter() which calls Footer() which calls printFooter() for each of the two possible footer lines as defined in the report structure file.
The printFooter() function uses the last record read for any %%field substitutions, which after my last change is now the 'next' record (as used in the updated _cm_ListView_print_after() function) instead of the 'current' record.
The printFooter() function does NOT use any of the extra rows created by the _cm_ListView_print_before() or _cm_ListView_print_after() functions.
Attached is an updated version of std.pdf.class.inc which now uses the 'previous' record instead of the 'last' record. Try it out to see if it fixes your problem.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|