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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report 11 via vs studio 5 NT authentication problem

Status
Not open for further replies.

Sara05

Programmer
Apr 13, 2007
9
0
0
US
Hello,

I currently have asp.net 2.0 application to view crystal reports. However If I dont include authentication. It says: The report you required needs more information It asks for user id and password... I have this code currently:
CrTables = crReportDocument.Database.Tables
For Each CrTable In CrTables
mylogin = CrTable.LogOnInfo
mylogin.ConnectionInfo.Password = "ID"
mylogin.ConnectionInfo.UserID = "pass"
CrTable.ApplyLogOnInfo(mylogin)
Next
It works fine if I provide my user id and password but I dont want to display my id and password since many users will be using this application. Is there anyway I could use Windows NT authentication? I dont know if this windows authentication i am using. But I want to be able to view the report without me providing my user id and password with NT authentication so that whichever user is logged in. It doesnt ask for id and password. Could someone please help me???

Thank you in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top