Reading XLSB file with Apache POI

可紊 提交于 2019-12-12 06:37:44

问题


I am reading xlsb file with below code, but its printing as text, I want to get headers, data values for each cell to set to java objects. Which classes should I use. Thanks in advance.

    File file = null;
    OPCPackage pkg = null;      
    XSSFEventBasedExcelExtractor ext = null;

        try {           

        file = Paths.get("C:/Users/U574564/Ref/source/Q4_GL_Assignment v1.xlsb").toFile();          
        pkg = OPCPackage.open(file,PackageAccess.READ);
        ZipSecureFile.setMaxTextSize(110485766);
        ext = new XSSFBEventBasedExcelExtractor(pkg);  
         System.out.println(ext.getText());

        }   catch(Exception ex) {
            System.out.println(ex.getMessage());
        }

来源:https://stackoverflow.com/questions/43900342/reading-xlsb-file-with-apache-poi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!