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

 
更多

php使用phpExcel解析excel文档的过程中出现 exception ‘Exception’ with message ‘The filename ../phpernote.com/user.xls is not recognised as an OLE file’ in D:\phpernote\apache\htdocs… 错误提示。

问题原因:

我直接使用Excel2007创建的excel文档,虽然也是xls类型文档,但貌似格式不兼容,即使将xlsx改成xls,也同样会报上述错误。

解决办法:

使用Excel2007创建文档后,然后另存为2003的。

打赏

本文固定链接: https://www.cxy163.net/archives/3654 | 绝缘体

该日志由 绝缘体.. 于 2015年06月17日 发表在 未分类 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: 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问题解决:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter