• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 關于水晶報表10 的字報表數據填充和顯示

    發表于:2007-07-14來源:作者:點擊數: 標簽:
    水晶報表10版本,不再上水晶報表9一樣自動幫你給子報表set 記錄集,需要你在程序中自己添加 protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1; DataSet newDs = new DataSet(); 。 。得到報表的數據集合set給newsDs DataSet dstMai
      水晶報表10版本,不再上水晶報表9一樣自動幫你給子報表set 記錄集,需要你在程序中自己添加

    protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1;

    DataSet newDs = new DataSet();
         。

         。得到報表的數據集合set給newsDs

       DataSet  dstMain=biz.GetDataSetList(pStart, pEnd, pStoreName);
     newsDs.Tables.Add(dstMain.Tables[0].Copy());//添加主報表數據集

       DataSet dstPOS1 = new DataSet();
          DataSet dstPOS2 = new DataSet();
          dstPOS1 = biz.GetDataSetList(pStart, pEnd, pStoreName1);
          dstPOS2 = biz.GetDataSetList(pStart, pEnd, pStoreName2);
          newsDs.Tables.Add(dstPOS1.Tables[0].Copy());//添加子報表數據集
          newsDs.Tables.Add(dstPOS2.Tables[0].Copy());//添加子報表數據集

        。

      Type m_Report_type  = m_Assembly.GetType(ReportClassName);//ReportClassName是報表名
         Object aa = m_Assembly.CreateInstance(m_Report_type.FullName);
         ReportClass reportEngine  = (ReportClass)m_Assembly.CreateInstance(m_Report_type.FullName);

       for(int i=1;i<newDs.Tables.Count;i++)//給子報表賦值
         {
          ReportDocument oSubreport=reportEngine.Subreports[i-1];
          oSubreport.SetDataSource(newDs);
         }

         reportEngine.SetDataSource( newDs );
         CrystalReportViewer1.ReportSource = reportEngine;
         return;


    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>