/// <summary> /// Function to print the details /// </summary> /// <param name="decRejectionInMasterId"></param> public void Print(decimal decRejectionInMasterId) { try { DataSet dsRejectionIn = bllRejectionInBll.RejectionInPrinting(decRejectionInMasterId, 1); frmReport frmReport = new frmReport(); frmReport.MdiParent = formMDI.MDIObj; frmReport.RejectionInPrinting(dsRejectionIn); } catch (Exception ex) { MessageBox.Show("RI:24" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }