Writing Code
 Crystal Reports Forum : Crystal Reports .NET 2003 : Writing Code
Message Icon Topic: Exception Details: CrystalDecisions.CrystalReports Post Reply Post New Topic
Author Message
yasinirshad
Newbie
Newbie
Avatar

Joined: 24 Sep 2007
Location: Saudi Arabia
Online Status: Offline
Posts: 39
Quote yasinirshad Replybullet Topic: Exception Details: CrystalDecisions.CrystalReports
    Posted: 06 Oct 2008 at 5:12am
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.
Thanks,
Yasin.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.