H
Hughsie
Hi
I have some crystal reports which worked fine in VS.NET 2002 but no
longer work since I upgraded to VS.NET 2003.
They all give the error 'Invalid Report Source'.
Here is what I am doing:-
-------------------------------------
Dim cnSQL As New OleDb.OleDbConnection(GetConnectionString)
Dim clsSprocs As New clsSprocs()
Dim dsSQL As New DataSet()
Dim rptDocument As New ReportDocument()
Try
dsSQL = clsSprocs.Reports_Test(cnSQL, 1001)
rptDocument.Load(GetIniSetting(Environment.CurrentDirectory &
"\System.INI", "REPORTS", "ReportPath") & "rpt_Test.rpt")
crvReports.ReportSource = rptDocument
crvReports.Zoom(1)
------------------------------------------
The data is retrieved fine and the report is loaded but when I set the
ReportSource for the ReportViewer control the error appears.
I am using XML Schema files (.xsd) for my data source in the report.
Has something significant changed between version which has caused
this?
Many Thanks
I have some crystal reports which worked fine in VS.NET 2002 but no
longer work since I upgraded to VS.NET 2003.
They all give the error 'Invalid Report Source'.
Here is what I am doing:-
-------------------------------------
Dim cnSQL As New OleDb.OleDbConnection(GetConnectionString)
Dim clsSprocs As New clsSprocs()
Dim dsSQL As New DataSet()
Dim rptDocument As New ReportDocument()
Try
dsSQL = clsSprocs.Reports_Test(cnSQL, 1001)
rptDocument.Load(GetIniSetting(Environment.CurrentDirectory &
"\System.INI", "REPORTS", "ReportPath") & "rpt_Test.rpt")
crvReports.ReportSource = rptDocument
crvReports.Zoom(1)
------------------------------------------
The data is retrieved fine and the report is loaded but when I set the
ReportSource for the ReportViewer control the error appears.
I am using XML Schema files (.xsd) for my data source in the report.
Has something significant changed between version which has caused
this?
Many Thanks