Show / Hide Table of Contents

Display the User Name in a Report

This tutorial demonstrates how to insert the current user name in a report using the PageInfo control.

eurd-win-insert-username-result

Do the following to insert the user name into a report:

  1. Typically, the user name is displayed within the Report Header band. 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.

    eurd-win-insert-datetime-add-reportheader-band

  2. Drop the PageInfo control from the Toolbox onto the ReportHeader band.

    eurd-win-insert-date-time-add-pageinfo

  3. Set the control's PageInfo property to UserName (e.g. using the smart tag).

    eurd-win-insert-username-set-pageinfo

  4. Next, to apply a format string to the control's contents, type Current User: {0} into its Text Format String property.

    eurd-win-insert-username-set-formatstring

In This Article
Back to top Copyright (c) 2006-2023 EarthCape OY. All rights reserved.