Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Login failed
Message
From
14/09/2004 14:20:03
 
 
To
13/09/2004 04:18:34
General information
Forum:
ASP.NET
Category:
Reporting
Title:
Miscellaneous
Thread ID:
00941544
Message ID:
00942024
Views:
28
Noel,

I use datasets for reporting, I don't access sql server directly...but I'm guessing you need to set the login credentials for each data table defined in the report.

Something like this...
Dim myTable As CrystalDecisions.CrystalReports.Engine.Table
Dim myLogonInfo As CrystalDecisions.Shared.TableLogonInfo
For Each myTable in oRpt.Database.Tables
   myLogoInfo = myTable.LogonInfo
   myLogonInfo.ConnectionInfo.UserId =    "user id"
   myLogonInfo.ConnectionInfo.Password = "password"
   myTable.ApplyLogonInfo(myLogonInfo)
Next myTable
There may be more to it than that, but if you're reporting directly off data in SQL server, I think you need to log into the tables.

Hope that helps...
Kevin
Previous
Reply
Map
View

Click here to load this message in the networking platform