搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Mozilla converts downloaded excel spreadsheets to HTM files

  • 2 回覆
  • 25 有這個問題
  • 8 次檢視
  • 最近回覆由 derernst

more options

We have a financial accounting system that allows us to download files in XLS format. When I used Internet Explorer with the system I never had a problem. However, Mozilla will not download an excel spreadsheet from the system. Rather, it creates an empty htm file and asks me what program I want to use to open the file. I used excel and it came up blank.

We have a financial accounting system that allows us to download files in XLS format. When I used Internet Explorer with the system I never had a problem. However, Mozilla will not download an excel spreadsheet from the system. Rather, it creates an empty htm file and asks me what program I want to use to open the file. I used excel and it came up blank.

所有回覆 (2)

more options

Let me provide some additional info on the problem: It has been a nice trick for years to easily create *.xls files via PHP by just creating an HTML table, and delivering it with an MS Excel mime type and an xls suffix. Browsers then saved the file to disk, or had Excel open it, which works well.

I can't say when this stopped working in Firefox. My current configuration is: Windows 7, Firefox 9.0.1, MS Office Starter. When I try to download this type of XLS file, Firefox seems to analyze the content and add an .htm extension to the filename, regardless of what is set in the application settings.

This may be a feature rather than a bug - however, it breaks a lot of existing web applications. I can locate the downloaded file in the temp folder, remove the .htm extension and open the file with Excel. But this is not acceptable for my customers; I'd rather give them the advice to use IE for applications that create XLS files.

more options

Update: I just noticed that the above happens only when I choose "Open with" in the download dialog. It happens though the MS Client Virtualization Handler is correctly set as the application to open the file.

OTOH, when I choose "download to disk", the file extension will not be changed, and I can open the file with Excel by normally doubleclicking it.