HI,
I am using VB.Net to open the Crystal report 9.0 by using the following statments
Dim crapp1 As New CRAXDDRT.ApplicationClass
Dim crReport As New CRAXDDRT.ReportClass
...Opened the connection
crReport = crapp1.OpenReport(FilePath & MyReport.rpt", 0)
crReport.Database.LogOnServer("pdsodbc.dll", DSN(of XML Datasource))
crReport.Database.Tables(0).SetDataSource(DtSet)
CrystalReportViewer1.ReportSource = crReport
CrystalReportViewer1.Show()
when i run the above code the following error is occured
System.Runtime.InteropServices.COMException
How to solve this problem
Thank you
I am using VB.Net to open the Crystal report 9.0 by using the following statments
Dim crapp1 As New CRAXDDRT.ApplicationClass
Dim crReport As New CRAXDDRT.ReportClass
...Opened the connection
crReport = crapp1.OpenReport(FilePath & MyReport.rpt", 0)
crReport.Database.LogOnServer("pdsodbc.dll", DSN(of XML Datasource))
crReport.Database.Tables(0).SetDataSource(DtSet)
CrystalReportViewer1.ReportSource = crReport
CrystalReportViewer1.Show()
when i run the above code the following error is occured
System.Runtime.InteropServices.COMException
How to solve this problem
Thank you