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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frm_rpKhuyenMai_Load(object sender, EventArgs e)
        {
            crystalReportViewer1.Refresh();

            rpKhuyenMai rp = new rpKhuyenMai();

            crystalReportViewer1.ReportSource = rp;
            rp.SetDatabaseLogon("sa", "sa2012", "DESKTOP-HHM5LAU", "QL_NHAHANG");
            crystalReportViewer1.Refresh();
            crystalReportViewer1.DisplayToolbar   = false;
            crystalReportViewer1.DisplayStatusBar = false;
        }