public bool Open(String excelFileName) { try { _fileName = excelFileName; _client = new ExcelOLEClient(); _client.Open(excelFileName); _sheetList = _client.GetSheetList(); return(true); } catch (Exception e) { Console.WriteLine(e.Message); _client = null; return(false); } }
public static void AddExcelSheet(string fileName, ExcelOLEClient client) { m_SheetMgr.Add(new ExcelSheet(fileName, client.GetSheetListWithIndex())); }