The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w
著论准过秦,作赋拟子虚。这篇文章主要讲述The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w相关的知识,希望能为你提供帮助。
Office1、导入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】
推荐阅读
- uni-app 左上角返回按钮消失
- 区分 BeanFactory 和 ApplicationContext()
- 简单两步实现Android app 本地设置信息的保存与调用
- 0042. Trapping Rain Water (H)
- Android 开发学习进程0.17Android资源文件selectortextview显示两种不同字体
- Problem E: 编写函数(Swap (I) (Append Code))
- 修改App.config的键和值
- AndroidGetAPKInfo --- 检查包名(packageName)版本(versionNameversionCode)应用签名(Signature)等信息
- 安卓SharedPreferences