March 10, 200421 yr Newbies 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
March 10, 200421 yr 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.
March 23, 200421 yr Author Newbies 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.
March 23, 200421 yr 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.
April 2, 200421 yr 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?
Create an account or sign in to comment