Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Par2: Continuous page numbering between reports 2012-04-01 -- Graham Dawson You don't say if you're using the Legacy of ABC template chain?
Anyway I got the People example app to continue numbering using the
following
Global Data
GLO:NextPageNo LONG initialized to zero at report sequence start.
In first report just _before_ the _close_ report statement which if you're
Previewing is
ThisWindow.AskPreview after Parent call
GLO:NextPageNo = report{prop:nextpageno}
In the next report just _after_ the _open_ report
ThisWindow.OpenReport after Parent
report{prop:nextpageno} = GLO:NextPageNo
If there's more reports to follow then just repeat ie add
ThisWindow.AskPreview after Parent call
GLO:NextPageNo = report{prop:nextpageno}
to the second report.
Obviously change the report label as required but you don't need to use
settarget or anything.
Same sort of logic would apply to Legacy reports - just save the next page
number immediately before the close(report) statement and in the next report
set the value immediately after the open(report) statement.
NB if you're STARTing the reports ie each is on a separate thread then the
GLO:NextPageNo must NOT have the THREAD attribute (otherwise it will just
reset to zero each time)
Today is November 21, 2024, 8:19 am This article has been viewed 35332 times.
|
|