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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frm_rpNguyenLieu_Load(object sender, EventArgs e)
        {
            rpNguyenLieu rp = new rpNguyenLieu();

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