New feature request
 Crystal Reports Forum : General Information : New feature request
Message Icon Topic: Totab page number Post Reply Post New Topic
Author Message
Ashraf
Newbie
Newbie
Avatar

Joined: 11 Oct 2011
Location: United States
Online Status: Offline
Posts: 4
Quote Ashraf Replybullet Topic: Totab page number
    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
IP IP Logged
sgtjim
Newbie
Newbie
Avatar

Joined: 23 Aug 2011
Online Status: Offline
Posts: 32
Quote sgtjim Replybullet 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;
IP IP Logged
Ashraf
Newbie
Newbie
Avatar

Joined: 11 Oct 2011
Location: United States
Online Status: Offline
Posts: 4
Quote Ashraf Replybullet Posted: 17 Oct 2011 at 1:34am
Ok .. but I need it in every page as pagenumber of Totalpagecount
thanks
Ash_Khl
IP IP Logged
DMD45
Newbie
Newbie
Avatar

Joined: 28 Jul 2014
Location: United States
Online Status: Offline
Posts: 5
Quote DMD45 Replybullet 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
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.032 seconds.