Hi,
Please review the following:
I have developed a report using New Report in Visual Studio 2008 (rdlc format) and Visual Studio Data Sources.
this.reportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
this.reportViewer.LocalReport.ReportPath = Server.MapPath("Your report path.rdlc");
this.reportViewer.LocalReport.DataSources.Clear();
this.reportViewer.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("DataSourceName", data));
Microsoft.Reporting.WebForms.ReportParameter[] parameters = new Microsoft.Reporting.WebForms.ReportParameter[3];
parameters[0] = new Microsoft.Reporting.WebForms.ReportParameter("ParameterName1", staffMemberDisplay, true);
parameters[1] = new Microsoft.Reporting.WebForms.ReportParameter("ParameterName2", startDate, true);
parameters[2] = new Microsoft.Reporting.WebForms.ReportParameter("ParameterName3", endDate, true);
this.reportViewer.LocalReport.SetParameters(parameters);
this.reportViewer.LocalReport.Refresh();
I hope this helps.
Feel free to ask questions if any.
Happy coding..!!
Regards,
Nayan