Hello,
Am getting this error .."Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed." Only for a particular report...dont know why...
My code :
Me
.CrystalReportViewer1.ParameterFieldInfo = ParamFields
Me.CrystalReportViewer1.ReportSource = crReportDocument
crReportDocument.SetDatabaseLogon(gbVariables.strUsrName, gbVariables.strUsrPwd, gbVariables.StrReportServer, gbVariables.strReportDBName)
Me.CrystalReportViewer1.RefreshReport()
CrystalReportViewer1.Visible =
True
When i use below,
crReportDocument.SetDatabaseLogon(gbVariables.strUsrName, gbVariables.strUsrPwd) ...
it doesnt throw error , neither displays report... But simply browses page...
Thanks to help.