I want to pass parameters to reportviewer control from the page I built with a form.
我想从我使用表单构建的页面将参数传递给reportviewer控件。
2 个解决方案
#1
4
I think this is what you are lookin for.
我认为这就是你所期待的。
List<Microsoft.Reporting.WebForms.ReportParameter> params = new List<Microsoft.Reporting.WebForms.ReportParameter>();
params.Add(new Microsoft.Reporting.WebForms.ReportParameter("Name", "Value", false));
this.ReportViewer1.ServerReport.SetParameters(params);
#1
4
I think this is what you are lookin for.
我认为这就是你所期待的。
List<Microsoft.Reporting.WebForms.ReportParameter> params = new List<Microsoft.Reporting.WebForms.ReportParameter>();
params.Add(new Microsoft.Reporting.WebForms.ReportParameter("Name", "Value", false));
this.ReportViewer1.ServerReport.SetParameters(params);