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();

你可能感兴趣的:(insert)