Newbies Marc G Posted March 10, 2004 Newbies Posted March 10, 2004 Instead of just listing the current page number in the header of a report, I need to list page 1 out of X where X is the total number of pages in the report. I could not find a function to calculate total pages in report. Is there such a function. Or does someone have a good formula or work-around for this. My client sends our multi-page proposals and wants to be sure the recipient knows when pages are missing. Thanks Version: v6.x Platform: Windows 2000
-Queue- Posted March 10, 2004 Posted March 10, 2004 Enter Preview Mode [ ] Go to Record/Request/Page [Last] Set Field [gPages, Status(CurrentPageNumber)] Go to Record/Request/Page [First] Put <<## of gPages>> on your header part.
Newbies Marc G Posted March 23, 2004 Author Newbies Posted March 23, 2004 Thanks. Your script works nicely on the first page of my report. I use a title header on the first page. Once page one, however, I get the correct page number but gPages comes up blank. I added a dialogue box to the script for testing purposes and it reports the correct value for gPages. In browse mode, gPages also shows the correct value. In preview mode, though, it comes up blank -- except in the title header on page 1.
-Queue- Posted March 23, 2004 Posted March 23, 2004 Der. Try ## of <<gPages>>. I'm surprised if that worked on the title header and not the rest, unless you typed it differently on the two.
Oldfogey Posted April 2, 2004 Posted April 2, 2004 Did you define gPages as a Global field? I hope you didn't use it in a Title Header; that only prints once, doesn't it?
Recommended Posts
This topic is 7542 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now