This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSP and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark ""Save as" option save Excel file as HTML by default?" Watch ""Save as" option save Excel file as HTML by default?" New topic
Author

"Save as" option save Excel file as HTML by default?

Maruli Lee
Greenhorn

Joined: Dec 09, 2004
Posts: 11
I've written a simple reporting application which will generate a report in Excel format. Upon completion the page (ReportList.jsp) will then forward a URL to another page (ReportSuccess.jsp) where user have to right click and choose "Save as" to retrieve the report.

On the development environment (XP SP2 with MS Office installed) there is no problem encountered. However, when I ported over the codes to the server (Windows Server 2003 with Open Office installed), when user right click and "Save as" the type is changed to HTML by default.

I've set the file association of .XLS files to be opened by Calc but still that does not solve it. Any other idea?

Additional info: When I right click on the link to view the properties it showed up correctly as "http://<myIP>:8185/SnetReport/REPORT/Gymboree.xls"
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: "Save as" option save Excel file as HTML by default?
 
Similar Threads
How to show file(residing on server) link on HTML
Uploading and saving file
Saving data to Excel files
upload file to client computer
Web report to Excel attachment in email