insert subreport in to crystalreport

      CrystalReportSource1.ReportDocument.Subreports["INV002.rpt"].SetDataSource(ds.Tables["dt21"]);
        CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables["dt2"]);
        CrystalReportViewer1.ReportSource = CrystalReportSource1;
        CrystalReportSource1.DataBind();
posted @ 2012-06-04 14:25  zyip  阅读(176)  评论(0编辑  收藏  举报