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

page number out total number of pages

Status
Not open for further replies.

tedi1

Technical User
Aug 25, 2002
87
IL
I am running CR 8.5 and dispalying my reports over the web trough ASP files. I want to display at the footer page number out of total number of pages (m of n). the problem is that till I'm getting to the last page all I'm Getting is the current page out of current page. How can I dispaly the actual number of pages?
 
How are you displaying this right now? I assume you are using the special field "Page N of M" correct? Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
I seem to recall that you may be able to correct this by placing a formula (suppress it) containing TotalPageCount in the report header, this used to force Crystal to analyze page numbers in advance.

-k kai@informeddatadecisions.com
 
Hi,
thanx for your replays.
dgillz, yes that is the field that I'm using.

synapsevampire, I have tried your idea but with not luck. even when I put it as you told me it comes out as it was.

any more ideas?
 
What effect does placing
Code:
"Page " + ToText(PageNumber,0,'') + " of " + ToText(TotalPageCount,0,'')
in the page footer instead of the special field have for you?

Naith
 
Thanx Naith,

but no go. I'm getting Page 1 of 4294967295.

mind that it works just fine in the CR apllication it self. the problem starts when I try to display it ovwr the web
 
Is it possible for you to change the viewer you're using?
 
I have Changed it to the HTML viwer and it work just fine. so actualy the problem is with the ActiveX viwer

Do you know somthing about that?
 
Some viewers don't return any information until they have cached all the report pages. This way, the viewer knows how many pages are in the report before displaying the output to you.

Other viewers display the information as and when, which is to say that as soon as there is enough information for the first page, then the first page is returned. The subsequent pages are not cached. The ActiveX viewer works like this. The HTML viewer, as you've seen, caches.

Naith
 
Isn't there any way to do somthing about it, like add some code that will go to the last page before it displays the first one?
 
That's what TotalPageCount is supposed to do!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top