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

PHP 投稿 11900 0 评论

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

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

问题原因:

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

解决办法:

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

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

赞同 (67) or 分享 (0)
游客 发表我的评论   换个身份
取消评论

表情
(0)个小伙伴在吐槽