NPOI.XSSF.UserModel.XSSFWorkbook.BeforeDocumentRead C# (CSharp) Method

BeforeDocumentRead() protected method

protected BeforeDocumentRead ( ) : void
return void
        protected void BeforeDocumentRead()
        {
            // Ensure it isn't a XLSB file, which we don't support
            if (CorePart.ContentType.Equals(XSSFRelation.XLSB_BINARY_WORKBOOK.ContentType))
            {
                throw new XLSBUnsupportedException();
            }

            // Create arrays for parts attached to the workbook itself
            pivotTables = new List<XSSFPivotTable>();
            pivotCaches = new List<CT_PivotCache>();
        }