rdlc报表参数传递

using Microsoft.Reporting.WebForms;

页面参数传递      ReportParameter gh = new ReportParameter("gh", "67074");
        ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { gh });

 

         ObjectDataSource1.SelectParameters.Clear();
        //增加数据源参数
        ObjectDataSource1.SelectParameters.Add("tjbh", "20080229001");
        //让ReportView重新加载数据源

 

 

 ReportViewer1.LocalReport.Refresh();

 

 

 

你可能感兴趣的:(报表)