Reports for WPF | ComponentOne
Task Based Help / Customize Page Header / Adding a Continued lables/Character string on page headers
In This Topic
    Adding a Continued lables/Character string on page headers
    In This Topic

    Group Header sections are repeated across page breaks if their C1.C1Report.Section.Repeat property is set to True. This makes the report easier to read, but it can be hard to tell if a group header on a page marks the beginning of a group or is just a continuation.

    One way to address this is to add a field with a "Continued" label named, fContinued, for example to the group header and control its visibility with script. To do this, complete the following steps:

    1. Open the C1ReportDesigner application. For more information on how to access C1ReportDesigner, see Accessing C1ReportDesigner from Visual Studio.
    2. Create a new report|tag=Creating a Basic Report Definition or open an existing report. Once you have the report in the C1ReportDesigner application, you can modify the report properties.
    3. Click the Close Print Preview button to begin editing the report.
    4. In Design mode, select Detail from the drop-down list above the Properties window.
    5. Locate the Detail.C1.C1Report.Section.OnPrint property and click the empty field next to it, and then click the ellipsis button.
    6. The VBScript Editor appears. Enter the following VBScript expression in the code editor:

    ' VBScript: Detail.OnPrint

    fContinued.Visible = true

    1. Then select GroupFooter from the drop-down list above the Properties window.
    2. Locate the GroupFooter.C1.C1Report.Section.OnPrint property and click the empty field next to it, and then click the ellipsis button.
    3. The VBScript Editor appears. Enter the following VBScript expression in the code editor:

    ' VBScript: GroupFooter.OnPrint

    fContinued.Visible = false

    If the fContinued field is initially invisible, then the script will show the label only on continued page headers. This script ensures that the fContinued field is visible within the group. Any page breaks created after the group footer and before the next Detail section will not show the label.

    Sample Report Available:


    For the complete report, see report "18: Continued Headers" in the CommonTasks.xml report definition file, which is available for download from the CommonTasks sample on the ComponentOne HelpCentral Sample page.

    See Also