private void ExecuteExportToExcel(object parameter) { try { CreateExcelFile c = new CreateExcelFile(); c.CreateExcelSummaryReport(_datatable, _projectcountdatatable); } catch { IMessageBoxService _msg = new MessageBoxService(); _msg.ShowMessage("There was a problem creating the Excel report", "Unable to create Excel report", GenericMessageBoxButton.OK, GenericMessageBoxIcon.Error); } }