I am using SQL report and written query
SELECT * FROM users WHERE created_by = @createdby
and passing the parameter using this code in the code behind the file to invoke this report.
param[0] = new ReportParameter("@createdby", "1");
reportviewer.ServerReport.SetParameters(param);
also in rdl file. I set this parameter "Set visibilty parameter" to hidden. It works fine when I execute this query using the query builder, the query request definition window appears and asks for the query parameter. and it works great.
but when passing this parameter using a .cs file. It gives the error "Error checking parameters." Cannot provide valid values for all parameters. (RsParameterError) ".
source
share