private void ReadExcelFileInfo(string path) { ExcelWorkBookInfo fileInfo = null; try { using (UsingExcel xls = new UsingExcel()) { fileInfo = xls.ReadExcelFileInfo(path); } } catch (Exception ex) { MessageBox.Show(ex.Message, "Ошибка чтения Excel"); } this.OpenedExcelFile = fileInfo; }
private void ReadExcelFileInfo(string path) { ExcelFileInfo fileInfo = null; try { using (UsingExcel xls = new UsingExcel()) { fileInfo = xls.ReadExcelFileInfo(path); } } catch (Exception ex) { ShowErrorMessage(ex, "Ошибка чтения Excel"); } this.OpenedExcelFile = fileInfo; }