Task Based Help > Adding Dynamic Page Header |
You may want to generate dynamic page header, that is different page headers on different pages of a report, depending on a condition. This can be done using OnFormat property of PageHeader.
For example, you want to display different report headers on even and odd pages of a report. Complete the following steps to create a report with dynamic page header:
odd = (page mod 2 <> 0)
PageHeader.SubSections(0).Visible = odd
PageHeader.SubSections(1).Visible = not odd
![]() |
Note: For the complete report, see report 'Dynamic Page Header' in the FlexCommonTasks.flxr report definition file, which is available in the ComponentOne Samples\Winforms\C1FlexReport\CS\FlexCommonTasks folder. The data base used is C1NWind.mdb which is also available in the ComponentOne Samples folder. |