Problem with Crystal Reports since upgrading to VS.NET 2003

  • Thread starter Thread starter Hughsie
  • Start date Start date
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
 
Yust a question, have you tried opening the report in visual studio 2003, to
recompile it?
it could solve the problem. If not it should give an indication on wats
going wrong.

eric
 
Hi
You need to modify the 'reference Path' of the project.
It should look like
'c:\windows\assembly\gac\crystaldecisions.windows.forms\9.
1.5000.0__692fbea5521e1304\' instead of
'c:\windows\assembly\gac\crystaldecisions.windows.forms\9.
1.3300.0__692fbea5521e1304\'

Kinds Regards
Jorge
-----Original Message-----
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 &
 
Back
Top