Add Page Numbers and System Information to a Report

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Report Designer > Report Designer for WPF > Creating Reports > Adding Details about a Report >

Add Page Numbers and System Information to a Report

Interface Elements for Desktop > Report Designer > Report Designer for WPF > Creating Reports > Adding Details about a Report > Add Page Numbers and System Information to a Report

This document describes how to insert page numbers or other system information (e.g., current date and time, user name, etc.) into a report.

Generally, this information is displayed within the Page Header and Footer or Page Margin bands. To add page numbers or system information to a report, drop the Page Info control from the Control Toolbox onto a band.

img123722

Then, follow the instructions below for your specific task.

Add Page Numbers

Add System Date and Time

Add the User Name

ExpandedCollapsed Add Page Numbers

To insert page numbers in a report, do the following.

1.Right-click the Page Info control, and in the context menu, click the Edit... link. Then, in the invoked dialog, specify the Page Information property.

img123723

You can choose one of the following formats for displaying page numbers.

oNumber - displays the current page number only.

oNumber of Total - displays the current page number with total pages.

oRom Low Number - the current page number is written in lowercase Roman letters.

oRom Hi Number - the current page number is written in uppercase Roman letters.

oTotal - displays the total number of pages.

2.To format the control's text, in the Edit dialog, specify the required format (e.g., Page {0} of {1}).

img123724

3.You can also specify the Start Page Number and Running Band properties. For instance, the latter is available when there are groups in a report, and you are required to apply independent page numbering for them.

The result is shown below.

img123725

ExpandedCollapsed Add System Date and Time

To insert the current system date and time into a report, perform the steps below.

1.Right-click the Page Info control and select Edit... in the context menu. In the invoked dialog, expand the Page Information drop-down and select Date Time.

img123726

2.To format the control's text, you can either type it in the Format property, or click its ellipsis button and use the Format String Editor.

img123727

The result is shown below.

img123728

ExpandedCollapsed Add the User Name

To display the current user name in a report, do the following.

1.Right-click the Page Info control and select Edit... in the context menu. In the invoked dialog, expand the Page Information drop-down and select User Name.

img123729

2.To format the control's text, in the Edit dialog, specify the required format (e.g., Current User: {0}).

img123730

The following image demonstrates the result.

img123731

ExpandedCollapsed See Also

Create or Modify Watermarks of a Report

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.