File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes Should the download code be modified specially for office2003  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Should the download code be modified specially for office2003  " Watch "Should the download code be modified specially for office2003  " New topic
Author

Should the download code be modified specially for office2003

PraveenKumar Kannankutty
Greenhorn

Joined: Aug 02, 2005
Posts: 13
Below attached is the code that iam using to set the header for download.

response.setHeader(
"Content-Disposition",
"download;filename=" + fileName);
response.setHeader(
"Content-Type",
"application/x-download; charset=SHIFT_JIS");

This holds good for downloading the file in OFFICE 2000 but junk values are getting displayed.
Can anyone help me out for the same.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Junk values are being displayed by what? Where? When?

This isn't really a Java question; I'm moving it to "General Computing."


[Jess in Action][AskingGoodQuestions]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Should the download code be modified specially for office2003
 
Similar Threads
Force client application to open download
set Content-Type
xlsx file name problem in internet explorer
URL-Pattern, Internet Explorer and Flash Videos
download link in jsp ?