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

Crystal Reports Third pass

Status
Not open for further replies.

PopsBirt

Programmer
Oct 17, 2011
1
US
I am trying to figure out a way to get the page n of m without making the third pass. We have reports that print several hundred pages and use sub reports and desire to have the page n of m in the header but cannot as it puts a load on the Servers.

I believe this will make a third pass because using the TotalPagecount method. Can anyone verify this please...


// Page N of M formula without making additional pass
NumberVar startNum := 1;
Page + ToText((PageNumber + startNum), 0) +
of + ToText((TotalPageCount + startNum), 0)
 
Using Page N of M or totalpagecount requires the report to be executed completely including all subreports in order to calculate total number of pages.

Without those formula report will build one page at a time an run subreports as required.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top