public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrBangBaoGia rpt = new CrBangBaoGia(); rpt.Site = this.Site; return(rpt); }
private void frmXuatBangbaoGia_Load(object sender, EventArgs e) { adapter = new SqlDataAdapter("SELECT MA_TB, TEN_TB, LOAI, SOLUONG, DONGIA_BAN, TG_BAOHANH, NSX FROM BANGBAOGIA", con); table = new DataTable(); adapter.Fill(table); CrBangBaoGia rp = new CrBangBaoGia(); rp.SetDataSource(table); crvBangBaoGia.ReportSource = rp; crvBangBaoGia.Refresh(); }