I am using sql reporting and written query
SELECT * FROM users WHERE created_by = @createdby
and passing parameter using this code in code behind file to call this report.
param[0] = new ReportParameter("@createdby", "1");
reportviewer.ServerReport.SetParameters(param);
also in rdl file. I have set this paramerter "Set Parameter visibilty" to hidden. It is working fine where I executes this query using query builder, a define query parameter box appears and ask for query parameter. and it works great.
but while passing this parameter using .cs file. It gives error "Parameter validation failed. It is not possible to provide valid values for all parameters. (rsParameterError)".
Per some googling on you behalf I found a possible candidate:
"Navigate to the remote report server management page (http:///Reports/Pages/Folder.aspx). Drill down and hover the cursor over your report, open the menu and select Manage.
On the page that opens, select Parameters and make sure the Hide box is checked for the parameter of concern.
Apply the update, and test."
Let me know if that works out for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With