Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Current User in Terminal Service Session on Report

Status
Not open for further replies.

RJL1

Technical User
Oct 3, 2002
228
US
I had read somewhere that there could be a way to pass the current user name to a crystal report. We use Terminal Services (RDP) to access the Crystal Reports.

Does anyone know if there is way in crystal to retrieve Session Information or a 3rd party software

Any help is appreciated

RJL1
 
There are some DLLs that can capture user info, but I am not sure if they work in the Terminal Services. This link has more info:


Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
 
Thanks for the lead on this DLL. it took some time to figure out where to put it if using Terminal Services and the report viewer but I got it working.

For those with similar setup the u2lwin32.dll should go into


C:\Program Files\Business Objects\common\3.5\bin\

I also had to re-start the Crystal Reports Server for it to pickup the new DLL. I'm still working on getting some of the functions to get the right information since it is a little different in Terminal Services.

I testedd it in my local machine and all functions work great.

Thanks
 
So it does pick up the terminal user you needed?

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
 
It picks up the user running the reportwhic hfor our application is a service account. I'm trying a different route by writting the user name to a text file and using the readini function to get the current user.

I'm looking on the forum to see how to write the user name to the text file.

The DLL does pick up certain information like Machine Name and other information but the readregistry function return null information. It does work my local machine but not on the terminal services session.

Will post once I have a working solution
RJL1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top