File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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://aspose.com/file-tools
 
subject: "Save as" option save Excel file as HTML by default?
 
Similar Threads
Uploading and saving file
How to show file(residing on server) link on HTML
Saving data to Excel files
upload file to client computer
Web report to Excel attachment in email