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

Adding Page number # of #


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

Recommended Posts

Posted

Hello.

In a report you can use ## to show what page number you are viewing.

How would I make it say page # of #?

For example page 1 of 4, page 3 of 7 and so on .

caman

Posted

Do the following:

1) create a global number field in the table that you are printing from, call it gNumPages

2) In your layout that you are printing include the following (the stuff in << >> is a merge field, accessed from the Insert menu in layout mode):

Page ## of <>

3) In your script that you use for printing include the following, once you have the correct found set that you want to print:

Go to the print layout

Enter preview mode

Print Setup(restore)

go to record/request/page(last)

set field(gNumPages, Get(PageNumber)

commit records/requests

go to record/request/page(first)

Print

Enter Browse mode

That's it. Basically you need to enter preview mode, go to the last page and record the current page number to the global field.

Hope that helps.

Echo

This topic is 6876 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.