With the ReportInfo control available in a section report, you can display page numbers and report dates and times by selecting a value in the FormatString property. This property provides the following pre-defined 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/2012 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/2012 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/12 |
{RunDateTime: M/d/yyyy} | Display the Date in the following format : 1/31/2012 |
{RunDateTime: MM/dd/yy} | Display the Date in the following format : 01/31/12 |
{RunDateTime: MM/dd/yyyy} | Display the Date in the following format : 01/31/2012 |
{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-12 |
{RunDateTime: d-MMM-yyyy} | Display the Date in the following format : 31-Jan-2012 |
{RunDateTime: dd-MMM-yy} | Display the Date in the following format : 31-Jan-12 |
{RunDateTime: dd-MMM-yyyy} | Display the Date in the following format : 31-Jan-2012 |
{RunDateTime: MMM-yy} | Display the Date in the following format : Jan-12 |
{RunDateTime: MMM-yyyy} | Display the Date in the following format : Jan-2012 |
{RunDateTime: MMMM-yy} | Display the Date in the following format : January-12 |
{RunDateTime: MMMM-yyyy} | Display the Date in the following format : January-2012 |
{RunDateTime: MMMM d,yyyy} | Display the Date in the following format : January 31, 2012 |
{RunDateTime: M/d/yy h:mm tt} | Display the Date and Time in the following format : 1/31/12 2:45 PM |
{RunDateTime: M/d/yyyy h:mm tt} | Display the Date and Time in the following format : 1/31/2012 2:45 PM |
{RunDateTime: M/d/yy h:mm} | Display the Date and Time in the following format : 1/31/12 2:45 |
{RunDateTime: M/d/yyyy h:mm} | Display the Date and Time in the following format : 1/31/2012 2:45 |
Page numbering can also be set to a group level using the SummaryGroup and SummaryRunning properties.
These steps assume that you have already added a Section Report to a project in Visual Studio. See Adding an ActiveReport to a Project for more information.