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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void frm_rpHoaDon_Load(object sender, EventArgs e)
        {
            rpHoaDon rp = new rpHoaDon();

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