/// <summary> /// Print function /// </summary> /// <param name="decMasterId"></param> public void Print(decimal decMasterId) { try { DataSet dsRejectionOut = spRejectionOutMaster.RejectionOutPrinting(decMasterId, 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.RejectionOutPrinting(dsRejectionOut); } catch (Exception ex) { MessageBox.Show("RO17:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }