PHPExcel 导出excel文件 打开显示“发现不可读取的内容”

WBOY
Release: 2016-06-23 13:40:54
Original
1655 people have browsed it

在用PHPExcel 导出excel文件时候,下载下来的表格。打开时候显示“发现不可读取的内容”,询问是否恢复此工作簿的内容,点击是之后,可以正常显示需要的内容。请问有人遇到过这种情况吗,求高手解答!


回复讨论(解决方案)

可能是 BOM 头

多个浏览器测试看看,看是否出现同一种问题。

看看文件??是不是多了?行或空格。

找到原因了,调用$objWriter->save('php://output')之后一定要紧跟exit。可以试试,我解决了。

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template