Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manual page Numbering 1

Status
Not open for further replies.

Goesain

Programmer
Nov 13, 2001
4
ZA
Hi there,

Would you please help with adding Page Numbering without using the built in functions (code manually) - these are already being used as Page n of n, and being reset after each grouping.

Appreciate your help...
 
I created a formula to keep count of the pages being printed regardless of grouping, because I too was resetting after each grouping. Here's what I used in the page footer although you might find something more efficient:

Formula: @PageCounter

global numbervar PageCount;
PageCount := PageCount + 1;
PageCount;

Cathy
 
Hi Cathy,

Thanks very much for pointing me in the right direction. Your example didn't increment the page number, it remained at '1'. It did however help me make sense of how to appraoch the problem. I searched the old threads and found this example which works for me.

whileprintingrecords;
numbervar PageCount;
PageCount:=PageCount+1;

The word 'global' is not recognised in CR6 - I forgot to mention the version I'm using.

Thanks again, really appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top