public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptPhieuGoi rpt = new rptPhieuGoi();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void BaoCaoPhieuGoi_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            KetNoi    kn = new KetNoi(frmDangnhap.tenmay);

            dt = kn.laybangHoaDonchodgv("select * from HoaDon");
            rptPhieuGoi rpt = new rptPhieuGoi();

            rpt.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rpt;
        }