IE6打开XLSX文件作为XLS文件 [英] IE6 opening XLSX file as an XLS file

查看:101
本文介绍了IE6打开XLSX文件作为XLS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序根据用户要求生成XLSX文件.

My application generates XLSX files based on a users requirements.

生成XLSX文件后,使用Response.Redirect ...将用户重定向到文件保存位置.

After the XLSX file is generated the user is redirected to where the file is saved using Response.Redirect...

Response.Redirect("filename.xlsx")

当用户随后打开文件时...他们收到此消息.

When the user then opens the file... they recieve this message.

您要打开的文件'filename.xls'与文件扩展名指定的格式不同.打开文件之前,请验证文件是否未损坏且来自受信任的源.您要立即打开文件吗?

The file you are trying to open, 'filename.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?

作为一个临时解决方案,我已指示用户在收到此消息时,请按是",并且文件打开完全正常.

As a temporary fix I've instructed my users to press "Yes" when they receive this message and the file opens perfectly fine.

有人知道为什么IE6试图将XLSX文件作为XLS打开吗?

Does anyone have any ideas why IE6 is trying to open an XLSX file as an XLS?

注意:我有一个类似的应用程序,该应用程序以相同的方式生成PPTX文件-并且这些文件可以正常打开.

推荐答案

我发现这是Windows Server较早版本的问题.

I've found that it is an issue with older versions of windows server.

xlsx MIME类型都需要添加,还需要安装一些驱动程序更新(我不知道具体是哪个驱动程序.我们的IT部门正在处理它)

Both the xlsx MIME type needs to be added and there are also a couple driver updates that need to be installed (I don't know specifically which ones. Our IT department is taking care of it)

添加MIME类型:转到IIS管理器并添加.xlsx MIME类型. (文档).

To add the MIME type: Go to IIS Manager and add the .xlsx MIME type. (Documentation).

需要添加的MIME类型是:

The MIME type that needs to be added is:

  • 文件扩展名: .xlsx
  • MIME类型: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  • File Extension: .xlsx
  • MIME Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

有关此信息的更多信息,请参见: http ://technet.microsoft.com/zh-CN/library/ee309278(office.12).aspx

Further information on this can be found here: http://technet.microsoft.com/en-us/library/ee309278(office.12).aspx

这篇关于IE6打开XLSX文件作为XLS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆