private void btnPrintMR_Click(object sender, EventArgs e) { try { objMR_DL.Update_Print(MRNO); rptViewer.PrintDialog(); this.Close(); } catch (Exception ee) { MessageBox.Show(this, ee.Message.ToString(), "Error Loading the Report", MessageBoxButtons.OK); } }