Print Page | Close Window

Totab page number

Printed From: Crystal Reports Book
Category: General Information
Forum Name: New feature request
Forum Discription: Share what features you want to see in the next release of Crystal Reports.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=14646
Printed Date: 19 Apr 2024 at 9:10pm


Topic: Totab page number
Posted By: Ashraf
Subject: Totab page number
Date Posted: 11 Oct 2011 at 6:27pm

hi all,

Now I have a variable to count pages
//----------------------------
WhilePrintingRecords;
NumberVar counter;
counter:=counter+1
//----------------------------
 
I need a variable to get Total page number
 
Thank you


-------------
Ash_Khl



Replies:
Posted By: sgtjim
Date Posted: 12 Oct 2011 at 8:29am
If your formula is counting correctly, then you just need a display formula in the report footer section.

Something like this.

WhilePrintingRecords;
Shared NumberVar displaycount;
displaycount := counter

You will also need to add the word Shared before NumberVar so you can use the variable outside of the formula. Like this:

Shared NumberVar count;


Posted By: Ashraf
Date Posted: 17 Oct 2011 at 1:34am
Ok .. but I need it in every page as pagenumber of Totalpagecount
thanks


-------------
Ash_Khl


Posted By: DMD45
Date Posted: 29 Jul 2014 at 8:32am
In the field explorer under 'Special Fields' there is a 'Page N of M' field that does what you want.

-------------
Dianne



Print Page | Close Window