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 閱讀(198) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 霍州市| 来安县| 霍林郭勒市| 大城县| 镇安县| 广东省| 伊春市| 寿光市| 蒙自县| 惠安县| 墨玉县| 阳山县| 连州市| 陆河县| 防城港市| 盐边县| 息烽县| 正安县| 宾阳县| 濮阳市| 随州市| 祁门县| 北川| 万宁市| 鞍山市| 卓资县| 望谟县| 海安县| 古浪县| 东至县| 江城| 宁都县| 张家川| 遂昌县| 潞城市| 开化县| 米脂县| 北宁市| 烟台市| 天长市| 新巴尔虎右旗|