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

CR .Net runtime uses saved data in the report instead of re-running report query

$
0
0

Hello:

 

I am using the code below

 

ReportDocument reportDocument = new ReportDocument();
reportDocument.Load(_reportRequestInfo.FullReportName, OpenReportMethod.OpenReportByDefault);
//reportDocument.ReportOptions.EnableSaveDataWithReport = false;

....

reportDocument.ExportToDisk(exportFormatType, outputFileName);

 

and I noticed that the runtime returns the data from the report instead of re-running the query behind the report.

 

Now, if I uncomment the third line it works the way it should. Is that the way to force the CR runtime to discard the data in the report and force the engine to re-run the queries upon export to disk?

 

Thanks


Viewing all articles
Browse latest Browse all 3636

Trending Articles



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