public class WriteExecl { @Test public void writeExeclTest() throws Exception{ OutputStream os = new FileOutputStream("F:/execl/writeTest2.xlsx"); // Workbook wb = new HSSFWorkbook(); // 创建一个 2003 版本的Execl Workbook wb = new XSSFWorkbook(); // 创建
问题描述:在使用poi包进行excel解析时,发现对Excel2003以前(包括2003)的版本没有问题,但读取Excel2007时发生如下异常:org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. You are calling the part of POI that deals with OLE2 Office Docu