Tom Kennedy Posted September 7, 2008 Posted September 7, 2008 I have a time and billing application where the invoice is made up of several reports (an invoice, time exhibit, cost exhibit, etc.). I would like to number the pages consecutively from one page to another even though the pages are not from the same layout but from the several layouts that make up the invoice.
Raybaudi Posted September 7, 2008 Posted September 7, 2008 Can each layout contain more than one page ? IOW: Do a single invoice have the same number of pages as the number of the layouts ?
Tom Kennedy Posted September 8, 2008 Author Posted September 8, 2008 Typically an invoice contains one cover letter page, a time exhibit that contains several pages, a cost exhibit that can contain one or more pages and a time allocation exhibit that is typically only one page. Hope this helps.
Raybaudi Posted September 8, 2008 Posted September 8, 2008 Do you have four tables ( cover letter, time exhibit, cost exhibit, time allocation exhibit ), all related to the invoice table by its ID ?
Raybaudi Posted September 8, 2008 Posted September 8, 2008 (edited) So you'll need to count all those pages in the script that do the print of the invoice in a way like this: ( you are in the Invoice Table ) Go to related record [ Show only related records ; from table "cover letter " ; with layout " cover letter" ] [color:red]Go to record [ Last ] Enter Preview Mode [color:green]Go to record [ Last ] Set Variable [ $pages; Value: $pages + Get( PageNumber ) ] Enter Browse Mode Go to related record [ Show only related records ; from table "time exhibit" ; with layout "time exhibit"] [color:red]Go to record [ Last ] Enter Preview Mode [color:green]Go to record [ Last ] Set Variable [ $pages; Value: $pages + Get( PageNumber ) ] Enter Browse Mode ... and so on with those other layouts. At the end $pages will contain the total number of pages that you have to print. You 'll put that $variable into a global field Edited September 8, 2008 by Guest wrog order of the steps
comment Posted September 8, 2008 Posted September 8, 2008 (edited) It needs to be: ... Enter Preview Mode Go to Record/Request/Page [ Last ] Set Variable [ $pages; Value: $pages + Get( PageNumber ) ] ... You can also set the global field directly, without going through the variable. Edited September 8, 2008 by Guest
Raybaudi Posted September 8, 2008 Posted September 8, 2008 yes, that is the right way to count the pages.
Tom Kennedy Posted September 8, 2008 Author Posted September 8, 2008 Thanks to both of you for your help.
Recommended Posts
This topic is 6287 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