G
Guest
Hi,
I have tried everything i got on Net and even the procedure given Microsoft
article on this error, but I still couldnt get out of this Logon error. Where
am I going wrong.
My code is as follows - using ms-access
in the declarations
dim crpt As CrystalReport1
dim myTable As CrystalDecisions.CrystalReports.Engine.Table
dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
In page load
crpt = New CrystalReport3
For Each myTable In crpt.Database.Tables
myLogin = myTable.LogOnInfo
myLogin.ConnectionInfo.DatabaseName = "myDB.mdb"
myLogin.ConnectionInfo.Password = "just4u"
myLogin.ConnectionInfo.UserID = "Admin"
myTable.ApplyLogOnInfo(myLogin)
Next
CrystalReportViewer1.ReportSource = crpt
When I load the page it gives the same Logon failed error..
Any help in this reagards.
Thanks in Advance.
Regards
Naveen
I have tried everything i got on Net and even the procedure given Microsoft
article on this error, but I still couldnt get out of this Logon error. Where
am I going wrong.
My code is as follows - using ms-access
in the declarations
dim crpt As CrystalReport1
dim myTable As CrystalDecisions.CrystalReports.Engine.Table
dim myLogin As CrystalDecisions.Shared.TableLogOnInfo
In page load
crpt = New CrystalReport3
For Each myTable In crpt.Database.Tables
myLogin = myTable.LogOnInfo
myLogin.ConnectionInfo.DatabaseName = "myDB.mdb"
myLogin.ConnectionInfo.Password = "just4u"
myLogin.ConnectionInfo.UserID = "Admin"
myTable.ApplyLogOnInfo(myLogin)
Next
CrystalReportViewer1.ReportSource = crpt
When I load the page it gives the same Logon failed error..
Any help in this reagards.
Thanks in Advance.
Regards
Naveen