Print Page | Close Window

Totalpagecount

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=21436
Printed Date: 04 May 2024 at 12:32am


Topic: Totalpagecount
Posted By: Atori
Subject: Totalpagecount
Date Posted: 16 Apr 2015 at 9:35pm
Hello

I want to put in a report bookmark (in the body), the totalpagecount, but, where, the report say me :
this function cannot to be use because it must to be evaluate at other time.

But, i must put it at this position in my report.

For this, i've make a variable with incrementation +1, but when i put this resul in my formula, always the problem.


Do you have a solution please ?

Thanks



Replies:
Posted By: Atori
Date Posted: 20 Apr 2015 at 9:48pm
no possibility ?
thanks


Posted By: DBlank
Date Posted: 21 Apr 2015 at 2:01am
not really understanding your issue / question.
totalpagecount is a standard special field. Where are you placing it that it is not functioning.
If it is in a formula what is that formula?


Posted By: Atori
Date Posted: 21 Apr 2015 at 2:22am
i want put it in a name group formula (bookmark), but not possible, i've an error.

example : {TABLE.DELIVERY}+":"+Totalpagecount;


Posted By: DBlank
Date Posted: 21 Apr 2015 at 2:41am
you cannot combine two different types of data (text and numeric) like that.
You want to display this is a string so you would have to convert the numeric field to a text field.
{TABLE.DELIVERY}+":"+totext(Totalpagecount,0,"")
The ,0"") indicates for it to display no decimals and to not use any seperator


Posted By: Atori
Date Posted: 21 Apr 2015 at 3:15am
yes but just i've :
this function cannot to be use because it must to be evaluate at other time.



Posted By: DBlank
Date Posted: 21 Apr 2015 at 3:28am
where are you placing the formula?
is it in a sub report?
are you using it in another formula?


Posted By: DBlank
Date Posted: 21 Apr 2015 at 3:32am
are you using
whilereadingrecords;
 


Posted By: Atori
Date Posted: 21 Apr 2015 at 3:51am
are you using
whilereadingrecords;

no

i put it in right click on the group (in body), change the group > options > formula




Posted By: DBlank
Date Posted: 21 Apr 2015 at 3:54am
you cannot group on it
groups are created first, which in turn effects the total number of pages, hence it is evaluated later.
don't group on it, just display it in the group header


Posted By: Atori
Date Posted: 21 Apr 2015 at 4:08am
ok it's for that, thanks


Posted By: DBlank
Date Posted: 21 Apr 2015 at 4:40am
if it is just for display you can display it in the group header, you just cannot group on it.



Print Page | Close Window