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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void GetReportData()
        {
            crPurchaseOrder   crt    = new crPurchaseOrder();
            EWA_PurchaseOrder objEWA = new EWA_PurchaseOrder();
            DL_PurchaseOrder  objDL  = new DL_PurchaseOrder();
            String            POCode = Session["POCode"].ToString();

            objEWA.POCode = POCode;
            DataSet ds = objDL.BindPurchaseOrderReport(objEWA);

            crt.SetDataSource(ds.Tables[0]);

            crvPO.ReportSource = crt;
            crvPO.RefreshReport();
            Session.Add("CR_Session", crt);  //Add Report into Session CR_Session
        }