/// <summary> /// Print function /// </summary> /// <param name="decReceiptMasterId"></param> public void Print(decimal decReceiptMasterId) { try { RecieptVoucherBll bllRecieptVoucher = new RecieptVoucherBll(); DataSet dsReceiptVoucher = bllRecieptVoucher.ReceiptVoucherPrinting(decReceiptMasterId);// PublicVariables._decCurrentCompanyId); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.ReceiptVoucherPrinting(dsReceiptVoucher); } catch (Exception ex) { MessageBox.Show("Rv14:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }