Jump to content

Total Pages in a Layout


Marc G
 Share

This topic is 6712 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • 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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...
  • 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.

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 6712 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.