Exemple #1
0
 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);
        }
Exemple #3
0
        void CreateReport()
        {
            //DisposeReport();
            try
            {
                PurchasesOrderDetailDL objPurchasesOrderDetailDL = new PurchasesOrderDetailDL();
                DataSet ds = objPurchasesOrderDetailDL.GetPurchasesBillReportData(CompanyId, PurchasesOrderId);

                objRpt = new PurchasesBill();
                objRpt.SetDataSource(ds);
                crystalReportViewer1.ReportSource = objRpt;
            }
            catch
            {
            }
        }