Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease 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!
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 November 21, 2024, 7:30 am This article has been viewed 35212 times.
|
|