The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deal...
2020-06-30 16:00
513 查看
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
- poi 3.8 使用xssf 仍然报错:The supplied data appears to be in the Office 2007+ XML. Yo
- The supplied data appears to be in the Office 2007+ XML
- org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML.
- 【转】断电或强制退出后VMware虚拟机出现The virtual machine appears to be in use无法启动问题解决
- using JS to control two select(html),the data can be loaded from database and XML,and show in the select
- namenode启动报错:There appears to be a gap in the edit log. We expected txid 1, but got txid 16
- hadoop错误FATAL org.apache.hadoop.hdfs.server.namenode.NameNode Exception in namenode join java.io.IOException There appears to be a gap in the edit log
- 断电或强制退出后VMware虚拟机出现The virtual machine appears to be in use无法启动问题解决
- java.io.IOException: There appears to be a gap in the edit log. We expected txid ***, but got txid
- 断电或强制退出后VMware虚拟机出现The virtual machine appears to be in use无法启动问题解决
- The virtual machine appears to be in use (VMWare)
- 【Visual Studio】The project appears to be under source control, but the associated source control plug-in is not installed on this computer
- 断电或强制退出后VMware虚拟机出现The virtual machine appears to be in u...
- hadoop2.0报错“There appears to be a gap in the edit log”
- 虚拟机没有正常关机后再打开时报错:"This virtual machine appears to be in use"
- The selected wizard could not be started.Plug-in org.tigris.subversion.subclipse.ui was unable to l
- Maven-010-maven 编译报错:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced.
- Namespace declaration statement has to be the very first statement or after any declare call in the
- (转!!~!`)On the Criteria To Be Used in Decomposing Systems into Modules by D.L. Parnas