ReportDataSource reportDataSource1 = new ReportDataSource("trade_P_ProjectInfo", db.ExecuteQuery(sql));
reportViewer1.LocalReport.ReportPath = MapPath("rdlc/trade.rdlc");
ReportParameter rptParaA = new ReportParameter("pTitle", txtTime.Text+"项目");
reportViewer1.LocalReport.SetParameters(new ReportParameter[] { rptParaA });
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
reportViewer1.LocalReport.Refresh();
trade_P_ProjectInfo 数据集名称