Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Set CR Data Source in Application causes it to stop working

$
0
0

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;


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>