We’ve embedded SSRS 2016 reports in our ASP.NET web application using the ReportViewer control, but parameters aren’t being passed correctly to the underlying datasets. The reports work perfectly when accessed directly through the Report Server, but in the embedded context, the dataset queries receive null parameter values. We’re using the SetParameters method to pass values before rendering:
ReportParameter[] params = new ReportParameter[] {
new ReportParameter("StartDate", "2025-01-01"),
new ReportParameter("EndDate", "2025-06-30")
};
reportViewer1.ServerReport.SetParameters(params);
The parameter names match exactly what’s defined in the report (case-sensitive). The report renders without errors, but shows no data because the dataset query isn’t receiving the parameter values. We’ve verified the parameter binding in code matches the report definition. Has anyone encountered issues with parameter name matching or ReportViewer control parameter passing in embedded scenarios?