/// <summary> /// Print function /// </summary> /// <param name="decPaymentMasterId"></param> public void Print(decimal decPaymentMasterId) { try { //PaymentMasterSP SpPaymentMaster = new PaymentMasterSP(); PaymentVoucherBll BllPaymentVoucher = new PaymentVoucherBll(); DataSet dsPaymentVoucher = BllPaymentVoucher.PaymentVoucherPrinting(decPaymentMasterId, 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.PaymentVoucherPrinting(dsPaymentVoucher); } catch (Exception ex) { MessageBox.Show("PV10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }