Articles in this section

How to Display Dynamic Data Using ReportItems in Bold Reports

Published:
Updated:

Bold Reports® lets you use the ReportItems collection to reference a named textbox in the report body from a page header or footer. For example, display a company name or report-specific text without repeating its expression in the header or footer.

Applies to: Reports created with the Bold Reports Web Designer.

Step-by-Step Instructions

Step 1: Create and Name a Textbox in the Report Body

  1. Open the report in the Bold Reports Web Designer.

  2. Drag a Textbox from the item panel into the report body.

  3. Enter the text or expression whose value you want to display. For example, enter a company name or configure the textbox to display a report field.

  4. Select the textbox and open the Properties pane.

  5. Set its Name property to a unique name, such as CompanyName.

    Textbox Properties pane showing the Name property set to CompanyName

Step 2: Reference the Textbox in a Page Header or Footer

  1. Enable the report Header or Footer section if it is not already enabled.

  2. Add a Textbox to the header or footer.

  3. Select the header or footer textbox and open the expression editor for its Content property.

  4. Enter an expression that uses the body textbox’s exact Name:

    =ReportItems!CompanyName.Value
    

    Expression Editor showing the ReportItems expression

    Header textbox configured with the ReportItems expression

Replace CompanyName with the Name property of the textbox in the report body. Use the same expression pattern in a footer textbox if needed.

Step 3: Preview and Verify the Report

  1. Click Preview in the top toolbar.

  2. Verify that the header or footer displays the expected value.

  3. If the source textbox is in a repeating data region or the report spans multiple pages, check pages before and after page breaks to confirm the displayed value is appropriate.

    Report preview showing the body textbox value in the page header

Download the sample report used in this guide here.

Related Articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied