private void ReadGlobals()
        {
            List <XlsxWorksheet> sheets;
            XlsxSST    sst;
            XlsxStyles styles;

            using (var stream = _zipWorker.GetWorkbookStream()) {
                sheets = ReadWorkbook(stream);
            }
            using (var stream = _zipWorker.GetWorkbookRelsStream()) {
                ReadWorkbookRels(stream, sheets);
            }

            using (var stream = _zipWorker.GetSharedStringsStream()) {
                sst = ReadSharedStrings(stream);
            }

            using (var stream = _zipWorker.GetStylesStream()) {
                styles = ReadStyles(stream);
            }

            _workbook = new XlsxWorkbook(sheets, sst, styles);

            CheckDateTimeNumFmts(_workbook.Styles.NumFmts);
        }
示例#2
0
 private void ReadGlobals()
 {
     _workbook = new XlsbWorkbook(
         _zipWorker.GetWorkbookStream(),
         _zipWorker.GetSharedStringsStream(),
         _zipWorker.GetStylesStream());
 }
示例#3
0
        private void ReadGlobals()
        {
            _workbook = new XlsxWorkbook(
                _zipWorker.GetWorkbookStream(),
                _zipWorker.GetWorkbookRelsStream(),
                _zipWorker.GetSharedStringsStream(),
                _zipWorker.GetStylesStream());

            CheckDateTimeNumFmts(_workbook.Styles.NumFmts);
        }