Heritagecomputer
asked on
Crystal Reports-logon failed error
whenver i design a crystal report from within dot net environment, it gives me this error
CrystalDecisions.CrystalRe ports.Engi ne.LogOnEx ception: Logon failed.
the code i have used is as follows:
Dim rpt As ReportDocument
rpt = New ReportDocument
CrystalReportViewer1.DataB ind()
rpt.Load("c:\inetpub\wwwro ot\west\re ports\rep1 .rpt", OpenReportMethod.OpenRepor tByDefault )
rpt.SetDatabaseLogon("sa", "123", "server1", "eastdb")
CrystalReportViewer1.Repor tSource = rpt
CrystalReportViewer1.ShowF irstPage()
somebody please tell me, where i m wrong!!!
CrystalDecisions.CrystalRe
the code i have used is as follows:
Dim rpt As ReportDocument
rpt = New ReportDocument
CrystalReportViewer1.DataB
rpt.Load("c:\inetpub\wwwro
rpt.SetDatabaseLogon("sa",
CrystalReportViewer1.Repor
CrystalReportViewer1.ShowF
somebody please tell me, where i m wrong!!!
If your report involves subreports then you may need a hotfix: http://support.businessobjects.com/library/kbase/articles/c2012317.asp
frodoman
frodoman
this is no problem with your application, every time u newly connect/Edit Existing DB using CrystalReporter... Do the following................. .
Open ur Crystal reporter.
open field Explorer
Right click Database fields tree menu.
click on verify Database.
and click ok on following pop up windows. Ur DB will be refreshed..
i suppose ur problem should have been solved by now :-)
Regards
Srinivasan.S
Open ur Crystal reporter.
open field Explorer
Right click Database fields tree menu.
click on verify Database.
and click ok on following pop up windows. Ur DB will be refreshed..
i suppose ur problem should have been solved by now :-)
Regards
Srinivasan.S
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
Otherwise the obvious thing is to check that the credentials are accurate - I don't see any problem with the code itself.
frodoman