/// <summary> /// Function to print the report /// </summary> public void Print() { AccountLedgerSP SpAccountLedger = new AccountLedgerSP(); try { DataSet dsAccountLedgerReport = SpAccountLedger.AccountLedgerReportPrinting(1, dtFromDate, dtTodate, decAccountGroupId, decLedgerId); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.AccountLedgerReportPrinting(dsAccountLedgerReport); } catch (Exception ex) { formMDI.infoError.ErrorString = "ALREP5:" + ex.Message; } }