Headers and footers in client report definition (RDLC) report layouts have the following limitations:
-
Expressions in a header or footer can refer to only one report item.
-
Data-bound fields in a header or footer will give an error. You must put the data-bound field in a text box in the body section, and either save the data to a global variable, or use ReportItem!<text box name>.
-
You can have only one report header, one body, and one report footer in a report.
Note You can have group headers and footers and table headers and footers.
When you create a layout suggestion, data-bound fields in the header are automatically moved to hidden fields in the body of the report. However, in some cases, you may need to create additional hidden text boxes in the body section of a report so that in the new layout, you can reference that report item in the header or footer.
The following topics describe modifications that require creating new hidden text boxes so that the data can be used in a header or footer:
For more information about Visual Studio report layouts, see Defining a Report Layout.