How to Display Dynamic Data Using ReportItems in Bold Reports
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
-
Open the report in the Bold Reports Web Designer.
-
Drag a Textbox from the item panel into the report body.
-
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.
-
Select the textbox and open the Properties pane.
-
Set its Name property to a unique name, such as
CompanyName.
Step 2: Reference the Textbox in a Page Header or Footer
-
Enable the report Header or Footer section if it is not already enabled.
-
Add a Textbox to the header or footer.
-
Select the header or footer textbox and open the expression editor for its Content property.
-
Enter an expression that uses the body textbox’s exact Name:
=ReportItems!CompanyName.Value
Replace
CompanyNamewith 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
-
Click Preview in the top toolbar.
-
Verify that the header or footer displays the expected value.
-
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.
Download the sample report used in this guide here.