` 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: Different page header on page 1 of a report
2000-03-20 -- Steve Parker
 
Create a Page Header based on what is common in the two headers. Create two detail bands contain the two headers and set their filters to False. Populate the Psge Number control template. Create a local variable, LOC: Page, a Long. Print the first one (using Anton Novikov's FAQ) in ThisWindow.OpenReport: If ~ReturnValue Print(RPT:FirstOne) End To print the Page Header for the rest of the pages, go to TakeRecord, before Parent Call: If Loc:Page <> ReportPageNumber Print(RPT:TheOtherOne) End LOC:Page = ReportPageNumber Lee White notes that this won't always return the results you're after unless you are forcing your own page breaks and recommends: After the first PRINT() the header on "page 1" has already been rendered so you can then change it to whatever you want on the remaining pages by whatever means you want. I generally just hide and unhide controls in the header as needed. (I.e., after the first Print(Rpt:Detail).)


Today is May 5, 2024, 6:19 am
This article has been viewed 35113 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: