public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { Purchase_Order_FormPrint rpt = new Purchase_Order_FormPrint(); rpt.Site = this.Site; return(rpt); }
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(); }