April 21, 201114 yr 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.
April 21, 201114 yr 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.
April 23, 201114 yr Author 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.
April 23, 201114 yr 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
April 23, 201114 yr 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.
April 23, 201114 yr 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. :)
April 25, 201114 yr Author 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 :)
Create an account or sign in to comment