Jump to content

Count pages


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

Recommended Posts

I have created a simple cover sheet for faxes.

I would like to automatically calculate how many pages the fax will be and insert this

calculation onto the fax cover sheet.

Is there any easy way around this other than manually going into print preview and scrolling

through the pages until you find the page numbers and then manually entering this value?

Thanks in advance

Milton.

Link to comment
Share on other sites

enter preview mode, go to the last page, use the Get( PageNumber ) function and insert this value into a global field that is displayed on the fax sheet.

Link to comment
Share on other sites

enter preview mode, go to the last page, use the Get( PageNumber ) function and insert this value into a global field that is displayed on the fax sheet.

Thanks for that Vaughan.

When I tried it I get the answer of 3 whether the fax has 1 page or 2 pages etc.

I have attached the script I setup.

Milton.

Page numbers.jpg

Link to comment
Share on other sites

Thanks for that Vaughan.

When I tried it I get the answer of 3 whether the fax has 1 page or 2 pages etc.

I have attached the script I setup.

Milton.

I use the technique described by Vaughan often and it always works. Perhaps you should post your code.

RW

Link to comment
Share on other sites

Use Set Field[] instead of Insert Calculated Result[]. Insert Calculated Result[] cannot work in Preview mode. That doesn't mean you should be using it Browse mode either - Set Field[] is (almost) always preferable.

Also make sure that field is global.

Link to comment
Share on other sites

enter preview mode, go to the last page, use the Get( PageNumber ) function and insert this value into a global field that is displayed on the fax sheet.

You can also use a merge variable as Page ## of <<$pg>>.

Set Variable [ $pg ; Get ( PageNumber ) ] when on last page. :)

Link to comment
Share on other sites

Use Set Field[] instead of Insert Calculated Result[]. Insert Calculated Result[] cannot work in Preview mode. That doesn't mean you should be using it Browse mode either - Set Field[] is (almost) always preferable.

Also make sure that field is global.

Thanks Comment........works a treat :)

Link to comment
Share on other sites

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