ReportDataSource datasource = new ReportDataSource("DataDataSet_Projects", this.db.GetTable("select * from Projects"));
ReportDataSource datasource1 = new ReportDataSource("DataDataSet_ProParts", this.db.GetTable("select * from ProParts"));
reportViewer1.LocalReport.ReportPath = "";
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(datasource);
reportViewer1.LocalReport.DataSources.Add(datasource1);
reportViewer1.LocalReport.SetParameters(new ReportParameter[] { new ReportParameter("Report_Parameter_0", "2222") });
//reportViewer1.LocalReport.Refresh();
this.reportViewer1.RefreshReport();
文章来源:
http://www.cnblogs.com/wangdetian168/archive/2008/09/03/1283361.html
posted on 2010-09-29 13:28
sanmao 阅读(193)
评论(0) 编辑 收藏