private void ReadGlobals() { _workbook = new XlsxWorkbook( _zipWorker.GetWorkbookStream(), _zipWorker.GetWorkbookRelsStream(), _zipWorker.GetSharedStringsStream(), _zipWorker.GetStylesStream()); CheckDateTimeNumFmts(_workbook.Styles.NumFmts); }
private void Dispose(bool disposing) { // Check to see if Dispose has already been called. if (!disposed) { if (disposing) { if (_zipWorker != null) _zipWorker.Dispose(); if (_xmlReader != null) _xmlReader.Close(); if (_sheetStream != null) _sheetStream.Close(); } _zipWorker = null; _xmlReader = null; _sheetStream = null; _workbook = null; _cellsValues = null; _savedCellsValues = null; disposed = true; } }