You can use the ReportInfo control in section reports to quickly display page numbers, page counts, and report dates. The ReportInfo control is a text box with a selection of preset FormatString options. You can set page counts to count the pages for the entire report, or for a specified group.
You can customize the preset values by editing the string after you select it. For example, if you want to display the total number of pages in the ReportHeader section, you can enter a value like: Total of {PageCount} pages
See Date, Time, and Number Formatting for information on creating formatting strings
You can set the ReportInfo properties in the ReportInfo dialog. To open it, with the ReportInfo selected on the report, under the Properties panel, click the Property dialog link.
With the ReportInfo control, you can display page numbers and report dates and times by selecting a value in the FormatString property. This property provides the following predefined options for page numbering and date and time formatting.
Numbering Format | Description |
---|---|
Page {PageNumber} of {PageCount} on {RunDateTime} | Display the page numbers along with Date and Time in the following format : Page 1 of 100 on 1/31/2020 2:45:50 PM |
Page {PageNumber} of {PageCount} | Display the only the page numbers in the following format : Page 1 of 100 |
{RunDateTime:} | Display the Date and Time in the following format : 1/31/2020 2:45:50 PM |
{RunDateTime: M/d} | Display the Date in the following format : 1/31 |
{RunDateTime: M/d/yy} | Display the Date in the following format : 1/31/20 |
{RunDateTime: M/d/yyyy} | Display the Date in the following format : 1/31/2020 |
{RunDateTime: MM/dd/yy} | Display the Date in the following format : 01/31/20 |
{RunDateTime: MM/dd/yyyy} | Display the Date in the following format : 01/31/2020 |
{RunDateTime: d-MMM} | Display the Date in the following format : 31-Jan |
{RunDateTime: d-MMM-yy} | Display the Date in the following format : 31-Jan-20 |
{RunDateTime: d-MMM-yyyy} | Display the Date in the following format : 31-Jan-2020 |
{RunDateTime: dd-MMM-yy} | Display the Date in the following format : 31-Jan-20 |
{RunDateTime: dd-MMM-yyyy} | Display the Date in the following format : 31-Jan-2020 |
{RunDateTime: MMM-yy} | Display the Date in the following format : Jan-20 |
{RunDateTime: MMM-yyyy} | Display the Date in the following format : Jan-2020 |
{RunDateTime: MMMM-yy} | Display the Date in the following format : January-20 |
{RunDateTime: MMMM-yyyy} | Display the Date in the following format : January-2020 |
{RunDateTime: MMMM d,yyyy} | Display the Date in the following format : January 31, 2020 |
{RunDateTime: M/d/yy h:mm tt} | Display the Date and Time in the following format : 1/31/20 2:45 PM |
{RunDateTime: M/d/yyyy h:mm tt} | Display the Date and Time in the following format : 1/31/2020 2:45 PM |
{RunDateTime: M/d/yy h:mm} | Display the Date and Time in the following format : 1/31/20 2:45 |
{RunDateTime: M/d/yyyy h:mm} | Display the Date and Time in the following format : 1/31/2020 2:45 |