Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            cryBaoCaoHoaDonBanHang rpt = new cryBaoCaoHoaDonBanHang();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frm_CR_BaoCaoHoaDonBanHang_Load(object sender, EventArgs e)
        {
            DataTable data            = thongKeBUS.BaoCaoHoaDonBanHang(fromDate, toDate);
            cryBaoCaoHoaDonBanHang bc = new cryBaoCaoHoaDonBanHang();

            bc.SetDataSource(data);
            cryBaoCao.ReportSource = bc;
        }