excel导出报错:The supplied data appears to be in the Office 2007+ XML.
Posted 秋风飒飒吹
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了excel导出报错:The supplied data appears to be in the Office 2007+ XML.相关的知识,希望对你有一定的参考价值。
用以上语句导出excel的时候报错:
信息: Request processing failed; nested exception is org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents
信息: Request processing failed; nested exception is org.apache.poi.poifs.filesystem.OfficeXmlFileException: The supplied data appears to be in the Office 2007+ XML. POI only supports OLE2 Office documents
原因是:
HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls
XSSFWorkbook:是操作Excel2007的版本,扩展名是.xlsx
HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls
XSSFWorkbook:是操作Excel2007的版本,扩展名是.xlsx
以上是关于excel导出报错:The supplied data appears to be in the Office 2007+ XML.的主要内容,如果未能解决你的问题,请参考以下文章
The supplied data appears to be in the Office 2007+ XML.You are calling the part of POI that deals w
linux导出Excel The maximum column width for an individual cell is 255 characters
[Redux] Supplying the Initial State
git checkout 报错error: Your local changes to the following files would be overwritten by checkout: da