473,326 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Problem with Crystal Reports since upgrading to VS.NET 2003

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.Current Directory &
"\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
Nov 20 '05 #1
2 1741
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

"Hughsie" <hu*********@hotmail.com> wrote in message
news:3c**************************@posting.google.c om...
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.Current Directory &
"\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

Nov 20 '05 #2
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 nolonger 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 theReportSource 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 causedthis?

Many Thanks
.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
1
by: Mithun Verma | last post by:
Hello All, I have a Windows application that uses Crystal Reports 9 (bundled Version) developed using VS.NET 2003 on a windows server 2003 m/c. The application has to be deployed on the client...
1
by: Randy | last post by:
Hello, Sorry if this is not the correct group to post this in. I couldn't find an actual Crystal Reports group except for the VB one. I'm currently using .NET 2003. I have a aspx NET web solution...
1
by: Teresa B | last post by:
I am going through your Brian Bischof's walkthrough in Chapter 1 of his book Crystal Reports .Net Programming and have come up to a problem. When I load the ReportDocument onto the form I get no...
0
by: Jakke | last post by:
Hi all, I don't know if I'm at right newsgroup but I've got some questions about integrating Crystal Reports into my own application. I'm totally new regarding Crystal Reports. Therefore I've...
0
by: Jeannette | last post by:
Hi! We currently use SQL Server 2000 Enterprise Edition and Visual Studio.NET 2003. Now, we are comparing the Crystal Reports for Visual Studio.NET 2003 with the SQL Server Reporting Services...
1
by: Doug Lim | last post by:
I have an ASP.NET application that I've developed using Visual Studio ..NET 2003 and I'm making use of Crystal Reports for .NET that's included to return reports back to the visitor's web browser...
3
by: akki | last post by:
Hi All, I am trying to host a site with an outside vendor which contains crystal reports. I am copying all the files but when I run the crystal reports i get the following error: "keycodeV2.dll...
15
by: =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= | last post by:
Hi All, We are in the process of Upgrade Excel 2003 (Office 2003) to Excel 2007 (Office 2007) for one of web application. This web application is using Excel (Pivot Table) reports. With Excel...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.