3

I have a spring mvc application that returns *.docx files (generated using docx4j). I send them to the browser with content type "application/vnd.openxmlformats-officedocument.wordprocessingml.document". This works as intended in firefox, chrome, and opera such that the browser offers to save or open the file using word. However, when I try to do this with MS internet explorer, the returned contents is displayed directly in the browser window.

When i use the same link for a right click and "save as" docx file, the file is stored correctly and may be opened using word.

Btw. everything works correctly in IE when I send "application/vnd.ms-excel" or other mime types.

Any ideas what's going wrong?

jschneeberger
  • 41
  • 1
  • 1
  • 3

1 Answers1

2

See How to launch Word from Internet Explorer and others eg http://support.microsoft.com/kb/162059

JasonPlutext
  • 15,352
  • 4
  • 44
  • 84
  • Thank you for the links! They refer to old style office documents with mime type "application/vnd.ms-*" which is not the problem. The problem seems to be associated with "application/vnd.openxmlformats-*" type .. – jschneeberger Jul 02 '13 at 09:27