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有关问题解决

问题原因:

虽然该文件可能有一个xls扩展名,这是一个“假”的Excel文件。如果您在文本编辑器打开该文件你会发现它实际上是一个HTML文件。

解决办法:

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

Tags: PHP

添加新评论