Click here to Skip to main content
14,239,699 members
Rate this:
Please Sign up or sign in to vote.
See more:
ReportParameter[] param = new ReportParameter[1];
            param[0] = new ReportParameter("Report_Parameter_0", s);
            ISHANDataSet dts = GetData();
           ReportDataSource datasource = new ReportDataSource("DataSet1",dts.Tables[1]);
           this.reportViewer1.LocalReport.DataSources.Clear();
           this.reportViewer1.LocalReport.DataSources.Add(datasource);
           reportViewer1.LocalReport.SetParameters(param);
           this.reportViewer1.RefreshReport();
Posted
Updated 8-Jul-19 1:23am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100