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

Missing parameter values error from C# application

$
0
0

I am getting a missing parameter values when I attempt to set the parameter values from my C# application.  There is a date parameter in the main report and there is a subreport with three parameters but they are all linked to the main report.

 

Here is my code:

 

reportDoc.Load("LEECRP.rpt");

reportDoc.SetParameterValue("WEDate", dateTimePicker1.Value.Date);

reportDoc.Database.Tables[0].SetDataSource(bidMDataSet);

reportDoc.Database.Tables[1].SetDataSource(payrollDataSet);

reportDoc.RecordSelectionFormula="{CostWork.Job}='" + job + "'";

reportDoc.ExportToDisk(ExportFormatType.PortableDocFormat, "C:\\Costing");

 

What am I missing?


Viewing all articles
Browse latest Browse all 3636

Trending Articles



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