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???
---------------------------------------
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
---------------------------------------