示例#1
0
 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);
     }
 }
示例#2
0
 public static void AddExcelSheet(string fileName, ExcelOLEClient client)
 {
     m_SheetMgr.Add(new ExcelSheet(fileName, client.GetSheetListWithIndex()));
 }