public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { HoaDonBanHang rpt = new HoaDonBanHang(); rpt.Site = this.Site; return(rpt); }
private void Form1_Load(object sender, EventArgs e) { DataTable dt = CTHD_BLL.Instance.CTHD_HDBH("HD9"); HoaDonBanHang rp = new HoaDonBanHang(); rp.SetDataSource(dt); crystalReportViewer1.ReportSource = rp; }