public void Print() { try { PaymentMasterSP SpPaymentMaster = new PaymentMasterSP(); DataSet dsPaymentReport = SpPaymentMaster.PaymentReportPrinting(Convert.ToDateTime(dtpFromDate.Value.ToString()), Convert.ToDateTime(dtpToDate.Value.ToString()), Convert.ToDecimal(cmbLedger.SelectedValue), Convert.ToDecimal(cmbVoucherType.SelectedValue), Convert.ToDecimal(cmbBankOrCash.SelectedValue), 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.PaymentReportPrinting(dsPaymentReport); } catch (Exception ex) { formMDI.infoError.ErrorString = "PREP1:" + ex.Message; } }