public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptParent rpt = new rptParent(); rpt.Site = this.Site; return(rpt); }
private void btnParentChild_Click(object sender, EventArgs e) { rptParent doc = new rptParent(); DataSet ds = new DataSet(); ds.Tables.Add(DBMaker.班级表()); ds.Tables.Add(DBMaker.学生表()); ds.Tables[0].TableName = "班级"; ds.Tables[1].TableName = "学生"; doc.SetDataSource(ds); crystalReportViewer1.ReportSource = doc; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptParent rpt = new rptParent(); rpt.Site = this.Site; return rpt; }