If you have a username before opening the report, you can add a parameter field (string) to the report, and then put this field in the report where you want it to be displayed at run time. You just need to pass it to the report as a parameter, like any other parameter.
Dim UserName As String = "BukHix" crDOC.SetParameterValue("UserName", UserName)
Buck hicks
source share