Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

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

Posted

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.

  • 2 weeks later...
  • Newbies
Posted

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.

Posted

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.

  • 2 weeks later...
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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