Crystal Reports-logon failed error
Posted on 2004-09-24
whenver i design a crystal report from within dot net environment, it gives me this error
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
the code i have used is as follows:
Dim rpt As ReportDocument
rpt = New ReportDocument
rpt.SetDatabaseLogon("sa", "123", "server1", "eastdb")
CrystalReportViewer1.ReportSource = rpt
somebody please tell me, where i m wrong!!!