Hello,
I created two reports :
- OleDbReport.rpt , with an OLE DB (ADO) data source (took only table
'stores' from database 'pubs')
- DataSetReport.r pt, with an ADO.NET DataSet as a data source (this dataset
contains only tables 'stores' as in 'pubs' database)
I created a winform, with a CrystalReportVi ewer in it.
I tried to show the two reports in it.
- OleDbReport works great :
OleDbReport report = new OleDbReport ();
crystalReportVi ewer1.ReportSou rce = report;
- DataSetReport doesn't :
DataSetReport report = new DataSetReport ();
SqlConnection connection = new SqlConnection (myConnectionSt ring); //
containing Database=pubs;
SqlDataAdapter adapter = new SqlDataAdapter ();
adapter.SelectC ommand = new SqlCommand ("SELECT * FROM STORES", connection);
connection.Open ();
DataSet dataset = new DataSet ();
adapter.Fill (dataset);
connection.Clos e ();
report.SetDataS ource (dataset);
crystalReportVi ewer1.ReportSou rce = report; // it seems to go wrong here
I get the following error (translated from french, so maybe not exactly that
one) :
Search engine error:
'C:\DOCUME~1\KA RINE~1.DEV\LOCA LS~1\Temp\temp_[...].rpt'
Karine