/// <summary> /// Function to print the voucher /// </summary> /// <param name="decMasterId"></param> public void Print(decimal decMasterId) { try { JournalMasterSP SpJournalMaster = new JournalMasterSP(); DataSet dsJournalVoucher = SpJournalMaster.JournalVoucherPrinting(decMasterId, 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.JournalVoucherPrinting(dsJournalVoucher); } catch (Exception ex) { MessageBox.Show("JV27:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }