paperbag1 Posted April 13, 2005 Posted April 13, 2005 When printing a form I have the page number inserted. How do you count the total number of pages you are going to print so you can have Page 1 of 3 inserted? Phil
efen Posted April 13, 2005 Posted April 13, 2005 You need a global [number] field called --lastpagenumber. Then create a script that goes to preview mode of the layout that needs to show the number of pages. Script: Enter preview mode[] Go to layout [the one with no of pages needed] Go to record/request/page [ last] Set field [
paperbag1 Posted April 14, 2005 Author Posted April 14, 2005 These 2 lines are giving me trouble: Set field [
MoonShadow Posted April 14, 2005 Posted April 14, 2005 Status{currentpagenumber) has been replaced with Get(PageNumber) in vs. 7. This goes in the Specify calculated result after you've selected the Lastpagenumber field with Set Field []. As indicated, Lastpagenumber is a global field you set with script. "" signifies the Operator which produces a null result. In other words, clears the field. BTW, you mention FORM. If you are on a form layout, you can use Get(FoundCount) to give you the total number because records are pages in Form View. Otherwise, yes, you'll need script to find the last page for reports.
paperbag1 Posted April 14, 2005 Author Posted April 14, 2005 Thanks. Get(FoundCount) did what I wanted. Phil
Recommended Posts
This topic is 7232 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