Dim orpt As New CrystalReport1
orpt.SetDataSource(DS)
cr1.ReportSource = orpt 'cr1 is crystal report viewer
cr1.Visible = True
End Sub
Here is the error message
Query Engine Error: 'C:\DOCUME~1\MYMACHINE~1\ASPNET\LOCALS~1\Temp\temp_b30b4aaf-89c3-4788-96d7-064c166ebe12.rpt'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
____________________________
BrainBench ADO.NET and ASP.NET Certified Developer
28-01-2004 at 09:49 AM
|
Abhayakumar Level: Guest
Re: Crystal Reports Error
Hi,
First check whether the dataset elements are same as the column names that we get from our database (SP or Query).
The datasource setting of the report object should be changed to the Table of the dataset. My problem was solved when i changed the datasource from the Dataset to the datatable of the dataset.
Eg:
rpt1.SetDataSource(Ds.Tables(0))
Abhay
28-07-2004 at 09:14 AM
|
zimcoder Level: VB Lord Registered: 27-10-2003 Posts: 225
Re: Crystal Reports Error
Thanks man .. But what happens when my dataset has more than one datatable from which the data is being pulled for the report??
____________________________
BrainBench ADO.NET and ASP.NET Certified Developer
28-07-2004 at 10:50 AM
|
icapsan Level: Guest
Re: Crystal Reports Error
If you're using several tables to show your report, you should use something like this:
The first table names (Table1, Table2) are the same as the ones you used in the report, and the second ones (table1, table2) are the same as the ones you used in the .Fill line.
I hope this information is useful.
01-08-2004 at 02:38 AM
|
nick2k4000 Level: Big Cheese Registered: 29-09-2003 Posts: 20
Re: Crystal Reports Error
quote:icapsan wrote:
If you're using several tables to show your report, you should use something like this:
The first table names (Table1, Table2) are the same as the ones you used in the report, and the second ones (table1, table2) are the same as the ones you used in the .Fill line.