Display the User Name in a Report
This tutorial demonstrates how to insert the current user name in a report using the XRPageInfo control.
Do the following to insert the user name into a report:
- To create a table report in this tutorial, start with a report that is bound to the “Products” table of the sample Northwind database (the nwind.mdb file included in the XtraReports installation). To learn more about binding a report to a data source, see Provide Data to Reports.
Typically, the user name is displayed within the ReportHeaderBand. To add it to the report, right click anywhere on the report’s surface. In the invoked menu, point to Insert Band and click ReportHeader.
Drop the XRPageInfo control from the DX.21.2: Report Controls Toolbox tab onto the ReportHeader band.