private void purchaseprint_Load(object sender, EventArgs e) { PurchaseVouchercr cr = new PurchaseVouchercr(); cr.SetDataSource(ds); crystalReportViewer1.ReportSource = cr; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PurchaseVouchercr rpt = new PurchaseVouchercr(); rpt.Site = this.Site; return(rpt); }