• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Internet Explorer can't download excel sheet as attachment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Internet Explorer can't download excel sheet as attachment


  • Subject: Internet Explorer can't download excel sheet as attachment
  • From: "pavan.jayam" <email@hidden>
  • Date: Thu, 08 Dec 2011 19:31:23 +0530

Hi List,

I am attaching NSData to the WOResponse and returning as an excel page. It works fine with the browsers like Safari,Chrome,Firefox and i am able to download/save the excel file, but when i am trying to do the same in Internet Explorer i am not able to download/save the file. A pop-up window is opening and closing automatically(immediately) with out any options to save or open.

--------------------------------------------------------------------------------------
aResponse.setContent(new NSData(data));
aResponse.setHeader("application/vnd.ms-excel", "content-type");
aResponse.setHeader("inline; filename=\"" + filename + "\"", "content-disposition");
aResponse.setHeader("" + data.length, "Content-length");
--------------------------------------------------------------------------------------


If i change my IE browser Downloads option (in the Security settings of Internet Options) which is disabled to enable, i can download/save the attachment.

Changing the IE browser setting is not acceptable from end-user. If there is a solution please let me know.

Help/Feedback on this would be greatly appreciated.

Regards,
PJ.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Internet Explorer can't download excel sheet as attachment
      • From: "Jérémy DE ROYER [INGENCYS]" <email@hidden>
  • Prev by Date: A little rule help here.
  • Next by Date: Re: Internet Explorer can't download excel sheet as attachment
  • Previous by thread: Re: A little rule help here.
  • Next by thread: Re: Internet Explorer can't download excel sheet as attachment
  • Index(es):
    • Date
    • Thread