Skip to Content
author's profile photo Former Member
Former Member

Saving excel file using HSSF api

I am using HSSF api to download an excel file. But the end users are not able to save the file. Some of them do not get the popup file download window so that they can choose to open or save. Is there a setting in the browser which shows up the window? The users may have different versions of excel on their pcs.

How to show the excel application menu 'file' so that users can save this file?

Any help would be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2005 at 03:11 PM

    Hi rao,

    Are you setting the content disposition like following.

    HttpServletResponse res = request.getServletResponse(true);
    try {
      res.setHeader("Content-disposition", "inline; filename=test.xls");
      } catch (Exception e) {

    Message was edited by: Prakash Singh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      I am having a similar issue. I have data coming as String (pdd, word, excel) etc....and I want to take that data and send it to either a different iView or the simplest one would be to send it to a IE Window using I have tried a few things, but no luck yet......

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.