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

User name password prompt with CR 9 and .NET

Status
Not open for further replies.

mrmtek

Programmer
Oct 13, 2002
109
0
0
AU
We use VB.NET to call crystal reports, we just upgraded from 8.5 to 9.0 crw and now when we call reports we are prompted with user name password prompts. We had this problem with 8.5 , used the following code.

CrTables = crReportDocument.Database.Tables
For TableCounter = 0 To CrTables.Count - 1
crtableLogoninfos.Add(crtableLogoninfo)
crtableLogoninfo = crtableLogoninfos.Item(TableCounter)
With crtableLogoninfo.ConnectionInfo
.ServerName = RTrim(crwServerName)
.DatabaseName = RTrim(crwDatabaseName)
.UserID = RTrim(crwUserID)
.Password = RTrim(crwPassword)
End With
CrTable = CrTables.Item(TableCounter)
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next

Which worked ok with 8.5 but now with 9.0 we get prompted for user name and password, can any body solve this annoying problem?
 
Can you please give some advice, I have the same problem with VB.NET.


Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top