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)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 

常用链接

留言簿(5)

随笔分类

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜