`
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).) Printed November 21, 2024, 12:36 pm This article has been viewed/printed 35213 times. |