I have a VS 2013 application that displays a CR report in a viewer. It works fine if I use the data source as created, but, if I try to set the data source at runtime, I get an error. "UploadSales has stopped working. Windows is searching for a solution." I have tried creating a 64 bit ODBC as well as a 32 bit ODBC. I still get the error. Any ideas?
Here is my code:
ReportDocument reportDoc = new ReportDocument();
reportDoc.Load("F:\\UploadSales.RPT");
reportDoc.SetDataSource(bidMDataSet);
CrystalReportViewer1.ReportSource=reportDoc;