// Build a tree of POIXMLDocumentParts, this workbook being the root
load(XSSFFactory.getInstance());
+
+ // some broken Workbooks miss this...
+ if(!workbook.isSetBookViews()) {
+ CTBookViews bvs = workbook.addNewBookViews();
+ CTBookView bv = bvs.addNewWorkbookView();
+ bv.setActiveTab(0);
+ }
}
/**
// Build a tree of POIXMLDocumentParts, this workbook being the root
load(XSSFFactory.getInstance());
+
+ // some broken Workbooks miss this...
+ if(!workbook.isSetBookViews()) {
+ CTBookViews bvs = workbook.addNewBookViews();
+ CTBookView bv = bvs.addNewWorkbookView();
+ bv.setActiveTab(0);
+ }
}
/**