The Big Bear Posted November 26, 2007 Posted November 26, 2007 Hi All I am trying to get a field to calculate the total number of pages that will be printed. Example page 1 of 6 I got the first field (1)to change as the page chnages but I can not figure out how to get the next field (6) to tell how many pages that are to be printed. Thanks Lionel
Lee Smith Posted November 26, 2007 Posted November 26, 2007 This Topic comes up from time to time. I did a Search for [color:blue]+number +pages (include the Pluses) and it returned a lot of hits. Here is a recent one Link that will get you started. Lee
SteveS Posted December 2, 2007 Posted December 2, 2007 Lee, I tried some examples from other suggested links and come with the total number of pages of all records in my report instead of showing the total number of pages included within the one report I want to print. Some of my reports extend to 4 pages, others extend past 7 pages. It depends on the length of each report. Example, I want my footer to show (Page 1 of 5), when printed. I tried adding a global "gNumberPages" field in my report script Enter Preview Mode Go to Record/Request/Page [Last] Set Field [gNumberPages ; get(PageNumber)] Print If you could solve this problem it would make things much easier for me. Thank You, Steve
Lee Smith Posted December 2, 2007 Posted December 2, 2007 (edited) Hi Steve, In the Search I provided, there were a number of examples. I noticed that a lot of the examples had the [color:blue]Find All Records step in them, but did not provide for a search. This is an extra step that isn't needed if you have already done a find to get your [color:blue]Found Set. One of the example files that you should look at is the one that [color:orange]bcooney Pointed to here, or go directly to the file Database Pros Site HTH Lee Edited December 2, 2007 by Guest
The Big Bear Posted December 2, 2007 Author Posted December 2, 2007 (edited) Lee Thanks I did used that DataBase Pro example and it worked perfectly Thanks again for the help Lionel Edited December 2, 2007 by Guest
SteveS Posted December 3, 2007 Posted December 3, 2007 Lee, Thank you for your help, it worked! The find request was key, I was unsure of how to format the find request that you described so I performed a find on the serial number of my report and proceeded as directed. How do I include a find request in this script: (find current record), that gives me my found set? Steve
Recommended Posts
This topic is 6261 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