private void GetAuditReport(DateTime dtFromDate, DateTime dtToDate, string sModuleID) { try { LogManager.WriteLog("Inside GetAuditReport method", LogManager.enumLogLevel.Info); IReports objReports = ReportsBusinessObject.CreateInstance(); DataSet dtDataset = objReports.GetAuditTrailReport(dtFromDate, dtToDate, sModuleID); if (dtDataset.Tables[0].Rows.Count == 0) { MessageBox.ShowBox("MessageID261", BMC_Icon.Information); return; } using (CReportViewer cReportViewer = new CReportViewer()) { cReportViewer.ShowAuditTrailReport("AuditTrail", dtDataset, dtFromDate, dtToDate, ((BMC.Transport.FillModules)(cmbModules.SelectedItem)).Audit_Module_Name); cReportViewer.SetOwner(Window.GetWindow(this)); cReportViewer.Show(); } } catch (Exception ex) { ExceptionManager.Publish(ex); } }