Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rpLocNhapKho rpt = new rpLocNhapKho();

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

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