` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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, 6:49 am
This article has been viewed 35331 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: