Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Purchase_Order_FormPrint rpt = new Purchase_Order_FormPrint();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void Purchase_Order_Form_Load(object sender, EventArgs e)
        {
            Purchase_Order g = new Purchase_Order();

            g.Hide();
            Purchase_Order_FormPrint ob = new Purchase_Order_FormPrint();

            ob.SetParameterValue("purchorderid", Purchase_Order.purid);
            crystalReportViewer1.ReportSource = ob;
            crystalReportViewer1.Refresh();
        }