miltont Posted April 21, 2011 Posted April 21, 2011 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.
Vaughan Posted April 21, 2011 Posted April 21, 2011 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.
miltont Posted April 23, 2011 Author Posted April 23, 2011 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.
Rick Whitelaw Posted April 23, 2011 Posted April 23, 2011 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
comment Posted April 23, 2011 Posted April 23, 2011 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.
LaRetta Posted April 23, 2011 Posted April 23, 2011 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. :)
miltont Posted April 25, 2011 Author Posted April 25, 2011 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 :)
Recommended Posts
This topic is 5019 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 accountSign in
Already have an account? Sign in here.
Sign In Now