private void btnPrintMR_Click(object sender, EventArgs e) { try { rptViewer.PrintDialog(); for (int i = 0; i < dt.Rows.Count; i++) { objMR_DL.Update_BulkPrint(Convert.ToInt64(dt.Rows[i]["MRNO"])); } LoadReport(); } catch (Exception ee) { MessageBox.Show(this, ee.Message.ToString(), "Error Loading the Report", MessageBoxButtons.OK); } }