New to Telerik Reporting? Start a free 30-day trial

Creating Reusable Report Headers and Footers with SubReport

Updated on Nov 2, 2026

The SubReport item is perfect for creating reusable report components that can be embedded in larger reports later. It can be useful for creating, for example, report or group headers and footers.

Here's a step-by-step tutorial for creating a reusable part of a report (for example, header and footer) using a SubReport:

Creating the Header Report

  1. Create a new report (for example, HeaderReport.trdp).

  2. Remove the default page header and footer.

  3. Add elements like company logos and report titles in the Detail section.

  4. Preview and save this report as a standalone file. This will serve as your reusable header part of a bigger report.

  1. Create a new report (for example, FooterReport.trdp).

  2. Remove the default page header and footer.

  3. Add elements like information text or any other meaningful content to the Detail section of a report.

  4. Preview and save this report as a standalone file. This will serve as your reusable footer part of a bigger report.

Adding SubReports to Your Main Report

  1. Create a new report that will serve as the main report.

  2. Remove the default page header and page footer if not needed.

  3. Add a report header and a report footer.

  4. Select the Report Header section and add a SubReport item.

  5. Navigate to the INNER REPORT section and select the UriReportSource option.

  6. For the Uri field, select the HeaderReport.trdp.

  7. Select the Report Footer section again and add another SubReport item.

  8. Navigate to the INNER REPORT section and select the UriReportSource option.

  9. For the Uri field, select the FooterReport.trdp.

  10. Select the Details section and add a TextBox item with a sample text.

  11. Preview the report which contains reusable header and footer subreports.

Thus, you can create separate reports that serve as standalone report parts and can be reused in multiple reports according to the specific requirements.

Passing Data to SubReports

Instead of using fixed data in the report headers/footers, it is possible to pass a title (or any text) from a main report to a TextBox in a SubReport, using the parameter‑passing mechanism. The above example can be further extended by replacing the "Telerik Reporting" text in the HeaderReport.trdp with a value coming from the main report.

Here are the steps to pass a title from the main report to a TextBox in the SubReport:

  1. Define a parameter in the SubReport:

    1. Open HeaderReport.trdp in the Report Designer.

    2. Select the report and expand Data > Report parameters.

      HeaderReport properties with the Report parameters collection expanded and no items added.
    3. Add a new parameter with these settings:

      • Name: title_parameter
      • Type: String
      • Allow null: selected (optional)
      • Allow blank and Mergeable: selected, as shown in the example
      • Auto-refresh, Multi-value, and Visible: cleared
      • Text and Value: empty

      Select Save to add the parameter.

      Add New Item dialog for the title_parameter report parameter.
  2. Bind a TextBox in the SubReport to that parameter:

    1. Select the TextBox inside HeaderReport.trdp where the title should appear.

    2. Set its Value to the following expression:

      text
      =Parameters.title_parameter.Value

      The TextBox displays the title passed from the main report.

  3. Map the main report value to the SubReport parameter:

    1. Open the main report and select the SubReport header item.

    2. Expand Inner Report > Report source > Parameters. Keep Type set to UriReportSource and Uri set to HeaderReport.trdp.

      Header SubReport properties with the report source Parameters collection expanded.
    3. Add a parameter with Name set to title_parameter and Value set to Your custom title, then select Save.

      Add New Item dialog mapping title_parameter to a custom title.
  4. Preview the report. The header now displays Your custom title above the main report's sample text, My First Report.

    Main report preview with the parameter-driven header above the report content and reusable footer.

See Also