代码如下:(我添加参数的方法)
this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("DataSet1", DT));
var p0 = new Microsoft.Reporting.WinForms.ReportParameter("title", title);
this.reportViewer1.LocalReport.SetParameters(new[] { p0 });
this.reportViewer1.RefreshReport();
rdlc是什么,你自己定义的变量名?
问题已经解决!谢谢