在Mozilla中下载excel时出错

时间:2021-07-21 21:50:25

I am getting error while I am opening an excel file in Mozilla. It works fine in IE. I have the below code:

我在Mozilla中打开excel文件时收到错误。它在IE中运行良好。我有以下代码:

String file="abc.xls";
            response.setHeader("Content-disposition:", "attachment; filename="+file); 
            response.setContentType("application/vnd.ms-excel"); 
            response.setCharacterEncoding("UTF-8"); 

Please suggest how to resolve this.

请建议如何解决此问题。

Please help.

1 个解决方案

#1


0  

You need to update your Firefox profile and edit "Plugin MIME type" information in order to handle this type of files.

您需要更新Firefox配置文件并编辑“插件MIME类型”信息才能处理此类文件。

Check these pages:

检查这些页面:

http://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data

http://support.mozilla.org/en-US/kb/set-how-firefox-handles-different-file-types

#1


0  

You need to update your Firefox profile and edit "Plugin MIME type" information in order to handle this type of files.

您需要更新Firefox配置文件并编辑“插件MIME类型”信息才能处理此类文件。

Check these pages:

检查这些页面:

http://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data

http://support.mozilla.org/en-US/kb/set-how-firefox-handles-different-file-types