public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PrintCdReport rpt = new PrintCdReport(); rpt.Site = this.Site; return(rpt); }
private void PrintWare_Load(object sender, EventArgs e) { if (ware.Trim() == "图书") { PrintBookReport bookreport = new PrintBookReport(); bookreport.SetDataSource(dataset); this.crystalReportViewer1.ReportSource = bookreport; } else { PrintCdReport cdreport = new PrintCdReport(); cdreport.SetDataSource(dataset); this.crystalReportViewer1.ReportSource = cdreport; } }