Problem using crystal report viewer 
Author Message
 Problem using crystal report viewer

Hello
m generating reports in Crystal Reports 9, and I load
the reports dinamically and show its with a object
CrystalReportViewer. Then I instance the object
reportdocument and set the report; THE PROBLEM COMES when
I set the object reportDocument to CrystalReportViewer
using the metod called "setDataSource(reportdocument)". It
send to me an error that say "Invalid Report Data Source"
and I dont know why!!!.

Thanks a lot!!!



Sat, 08 Oct 2005 01:06:07 GMT  
 Problem using crystal report viewer
Roy, the SetDataSource method is used to pass a DataSet object to the
report engine.  To assign a report to a CrystalReportViewer, you want
to use the ReportSource property.  For example

daDataAdapter.Fill(dsDataSet)
rptMyReport.Load("c:\myreport.rpt")
rptMyReport.SetDataSource(dsDataSet)
crvCrystalReportViewer.ReportSource = rptMyReport

Hope this helps.

Andy


Quote:
> Hello
> ?m generating reports in crystal reports 9, and I load
> the reports dinamically and show its with a object
> CrystalReportViewer. Then I instance the object
> reportdocument and set the report; THE PROBLEM COMES when
> I set the object reportDocument to CrystalReportViewer
> using the metod called "setDataSource(reportdocument)". It
> send to me an error that say "Invalid Report Data Source"
> and I don t know why!!!.

> Thanks a lot!!!



Sat, 08 Oct 2005 06:40:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ActiveX Problem Using Crystal Reports Viewer

2. Passing Parameters from C# to Crystal Report / Crystal Report Viewer

3. Using Access form as Crystal Reports viewer

4. Report displayed using Crystal ActiveX viewer shows blank pages after scroll to last page

5. using Crystal Report Viewer control

6. Using Crystal Reports Viewer with Microsoft Access

7. Using PgUp and PgDn keys in the Crystal Report Viewer

8. Crystal report viewer / VB6 IDE problem

9. Crystal 9 and the Crystal report viewer OCX.

10. Invalid Report Source Error in Crystal Report Viewer

11. Reports using Alias has problems with RDC Viewer

12. Crystal Reports ANd VB 6.0 Printing reports using CRPEAUTO Object, specifying paper orientation problem

 

 
Powered by phpBB® Forum Software