internal XLSWorkbook(string path, ExcelSheetReadConfig config) : base(path) { string tmpFile = Path.GetTempFileName(); File.Copy(path, tmpFile, true); rawWorkbook = new XSSFWorkbook(tmpFile); for (int i = 0; i < rawWorkbook.NumberOfSheets; i++) { var srcSheet = rawWorkbook.GetSheetAt(i); Sheets.Add(srcSheet.SheetName, new XLSExcelSheet(srcSheet, config)); } }
internal SVWorkbook(string path, ExcelSheetReadConfig config) : base(path) { Sheets.Add(Path.GetFileName(path), new SVExcelSheet(path, config)); }