private void btnClose_Click_1(object sender, EventArgs e) { crystalReportViewer1.Dispose(); objRpt = null; this.Close(); this.Dispose(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { PurchasesBill rpt = new PurchasesBill(); rpt.Site = this.Site; return(rpt); }
void CreateReport() { //DisposeReport(); try { PurchasesOrderDetailDL objPurchasesOrderDetailDL = new PurchasesOrderDetailDL(); DataSet ds = objPurchasesOrderDetailDL.GetPurchasesBillReportData(CompanyId, PurchasesOrderId); objRpt = new PurchasesBill(); objRpt.SetDataSource(ds); crystalReportViewer1.ReportSource = objRpt; } catch { } }