Exemplo n.º 1
0
        private void ReadGlobals()
        {
            _workbook = new XlsxWorkbook(
                _zipWorker.GetWorkbookByteArray(),
                _zipWorker.GetWorkbookRelsByteArray(),
                _zipWorker.GetSharedStringsByteArray(),
                _zipWorker.GetStylesByteArray());

            CheckDateTimeNumFmts(_workbook.Styles.NumFmts);
        }
Exemplo n.º 2
0
        private void Dispose(bool disposing)
        {
            // Check to see if Dispose has already been called.
            if (!_isDisposed)
            {
                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;

                _isDisposed = true;
            }
        }