Text Substitution Parameters for Titles, Headers, Footers and Columns

Several text substitution parameters are available for customizing your report’s title, page header and page footer. 

Text Substitution Parameter



A report title specified in the page’s code-behind file.

For details, see Customizing Microsoft Word Report Code.


A page label specified in the “Txt:Page” resource in your application’s resource file (RESX).

Your application’s resource file is located in:

...\App_GlobalResources\<App Name>.resx


An automatically incrementing page number.  The first page is numbered “1”, the second page is “2” and so forth.


A date or time where “?” is a letter indicating the .NET date and time format.

For more information, visit:



These substitution parameters are typically used in the following context:




There are several caveats.

Column headers do not accept any substitution parameters.

For the column detail, the available substitution parameters are specified in the AddData() function calls in the page’s code-behind file.  For example:

report.AddData ("${Customers.CustomerID}",




The available substitution parameter is "${Customers.CustomerID}" representing the value of the CustomerID in each row.

In the column detail, you can use

<Value>${Customers.LastName}, {Customers.FirstName}</Value>

Finally, if there is no column specified in the button-specific configuration file, your application will still read the .word files.  However, the table is created according to the AddColumn function calls in the page’s code-behind file.

See Also

Customizing Microsoft Word Report Configuration Files

Text Substitution Parameters for Titles, Headers, Footers and Columns

Microsoft Word Report Alignment Configuration

Microsoft Word Report Language and Culture-Based Configuration

Customizing Microsoft Word Report Code