Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CrystalDecisions.CrystalReports.Engine.LogOnException

Status
Not open for further replies.

Modica82

Technical User
Jan 31, 2003
410
GB
I keep getting this error when i try and open a crystal report (version 10) in my ASP.Net application and i keep recieving this error. My report is a standard report, bound to a datasource with a sub report, also bound to a datasource.

Any Ideas???

Code:
        Dim cr As New ReportDocument

        Try
            cr.Load("C:\TGReport1.rpt")

            Dim crLogonInfo As CrystalDecisions.Shared.TableLogOnInfo
            crLogonInfo = cr.Database.Tables(0).LogOnInfo
            crLogonInfo.ConnectionInfo.ServerName = "192.168.0.0"
            crLogonInfo.ConnectionInfo.UserID = "XXXX"
            crLogonInfo.ConnectionInfo.Password = "XXXX"
            crLogonInfo.ConnectionInfo.DatabaseName = "XXXX"
            cr.Database.Tables(0).ApplyLogOnInfo(crLogonInfo)

        Catch ex As Exception
            Response.Write("C:\\Documents and Settings\\rob\\My DocumentsTGReport.rpt")
            Response.Write("An error has occoured when loding the report")
        End Try

        cr.SetParameterValue("jobcode", "AAAA")
(6))
        CrystalReportViewer1.ReportSource = cr

---------------------------------------
 
It doesnt work for me as i am not populating my crystal report via a DataSet. I am just trying to send it a paremeter and view a report. The report was made in Crystal 10.

Anyone??

Rob

---------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top