コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rpOrder rpt = new rpOrder();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void frm_rpOrder_Load(object sender, EventArgs e)
        {
            rpOrder rp = new rpOrder();

            crystalReportViewer1.ReportSource = rp;

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