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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get PageNumber

Status
Not open for further replies.

zarep1001

Programmer
Feb 16, 2006
12
0
0
YU
I have made a crystal report which groups records by one field and resets page numbering for each group.

How can I get actual Page number for the whole report?

 
Insert a formula in the page header:

whileprintingrecords;
numbervar pageno := pageno + 1;

The total would only be available at the end of the report, however.

If you want the total page count earlier, then use the above formula for the group page numbers by adding a reset formula:

whileprintingrecords;
numbervar pageno := 0;

If your page number is in the page header, then place the reset in the group footer. If the page number is in the page footer, then add the reset in the group header. Then you can go to the field explorer->special fields and add "totalpagecount" to your report. You can place this anywhere.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top