Home >Backend Development >PHP Tutorial > PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file有关问题解决

PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file有关问题解决

WBOY
WBOYOriginal
2016-06-13 13:06:53961browse

PHPExcel的exception 'Exception' with message 'The filename is not recognised as an OLE file问题解决

[ 错误信息 ]

问题原因:


虽然该文件可能有一个xls扩展名,这是一个“假”的Excel文件。如果您在文本编辑器打开该文件你会发现它实际上是一个HTML文件。
我的原因是模版有错,我直接把Excel2007的后缀,xlsx改成xls,导致“伪”xls文件

解决办法:


使用Excel2007创建后,另存为2003的


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn