The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w
Posted 卡卡不卡
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w相关的知识,希望对你有一定的参考价值。
1、导入Execl数据时提示错误,如下图
2、操作步骤
因无法确定.xls和.xlsx哪种格式系统支持,新建表格用了.xlsx格式,后发现系统找不到该格式,直接把文件名的后缀改成了.xls。
3、关键问题的原因还是excel版本的问题
解决办法
a. 判断文件后缀名是xls,还是xlsx;HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls;XSSFWorkbook:是操作Excel2007的版本,扩展名是.xlsx。
b. 如果是xls,使用HSSFWorkbook;如果是xlsx,使用XSSFWorkbook。
以上是关于The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w的主要内容,如果未能解决你的问题,请参考以下文章
org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Offic
The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w
[Redux] Supplying the Initial State
Python illustrating Downhill simplex method for minimizing the user-supplied scalar function的代码
VSphere随笔 - vCenter6.5安装报错 “Failed to authenticate with the guest operating system using the supplie
java.lang.IllegalStateException: This Activity already has an action bar supplied by the window deco