File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes i cannot download file problem with IE Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

i cannot download file problem with IE

kkalyan kkumar
Greenhorn

Joined: Jul 23, 2008
Posts: 12
Hi,

I did a functionality which allows the user to download an excel sheet which contains the records in the database. When I press DOWNLOAD button in mozilla firefox it works correctly by downloading the excel file (filename.xls).
I'm using the following code:

response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-disposition","attachment;filename=filename.xls");


But when i press DOWNLOAD button in Internet Explorer6.0 i am unable to download the excel file. It shows filename_html instead of filename.xls

help me please, Thanks in advance
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
Don't post the same question multiple times


Joanne
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: i cannot download file problem with IE
 
Similar Threads
Need help c JList & File opening
problem with downloading XLS file
Changing the way IE launches files (Word, Excel, etc.)
alternate way for setHeader
File size restriction in struts managed download