excel - Excel 2007 的 Mime 类型

标签 excel types header mime

如何设置适用于 excel 2007 的正确 MIME 类型? 现在我有这个:

header("Content-type: application/vnd.ms-excel; charset=UTF-8");

我的浏览器一直告诉我这是一个 97 2003 文件,但是当我尝试使用 Excel 2007 打开该文件时,程序显示一些警告,我可以看到该文档,但我试图避免该警告。

最佳答案

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

http://support.microsoft.com/?id=936496

关于excel - Excel 2007 的 Mime 类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13123912/

相关文章:

mysql - Excel 多列的 SQL IN 语句

c++ - Boost phoenix值和函数返回值类型

C++模板检查类型验证

sql-server - SQL Server中如何将XML数据转换成行列数据

PHP + PDF,如何使用 curl 保存下载的 PDF?

c - fatal error : interrupt. h : No such file or directory #include <interrupt. h>

mysql - SQL 查询 "SELECT A.one, B.two FROM A INNER JOIN B ON A.three = B.three"的 Excel 等效项

vba - Excel VBA - 在特定非默认 (A1) 位置创建表

excel - 获取隐藏列时的最后一个列号

c++ - 错误 : Class has not been declared despite header inclusion, 并且代码在其他地方编译正常