Hello,
I'm using a standalone *.trdx report with winforms application, In the designer I defined the parameters and linked the file with a storedprocedure which requires 3 parameters (KidName, DateFrom, DateTo), and I tested from the Telerik Report Designer and it works well in the datasource wizard
but I cannot pass the values from the .net application
I tried this code but I always get a message Missing or Invalid parameter value. Please input valid data for all parameters
this is the code I'm using:
uriReportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@KidName"
, KidName));
uriReportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@DateFrom"
, DateFrom));
uriReportSource.Parameters.Add(
new
Telerik.Reporting.Parameter(
"@DateTo"
, DateTo));
uriReportSource.Parameters[
"@KidName"
].Value = KidName;
uriReportSource.Parameters[
"@DateFrom"
].Value = DateFrom;
uriReportSource.Parameters[
"@DateTo"
].Value = DateTo;
reportViewer1.ReportSource = uriReportSource;
reportViewer1.RefreshReport();
Please fix my code and explain what I need to do