I am trying to open a office 2007 document a .xlsx file
I am using tomcat 6.0.18 on Windows XP SP2 platform
Currently i am using
in my jsp:
response.setContentType("application/vnd.ms-excel");
and the mime mapping in tomcat/conf/web.xml is defined as :
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
It opens fine in excel 2003 but with an annoying pop up which was fixed with extentionHardening in the registry
but i need it to open it in excel 2007. ie., with a .xlsx extention
so i made the following changes but its not working
jsp:
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
mime mapping in web.xml
<mime-mapping>
<extension>xlsx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
</mime-mapping>
it opens but with an error saying
"Excel cannot open file 'xxx' because the file format or file extention is not valid. verify that the file has not been corrupted or that the file extension matches the format of the file"
The file is getting corrupted.
Open an Office 2007 document in IE 7
-
soulsnatched
- Posts: 1
- Joined: Tue Jan 19, 2010 11:45 pm
Open an Office 2007 document in IE 7
Office 2007 Windows XP sp2
- Hagar Delest
- Moderator
- Posts: 33614
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: Open an Office 2007 document in IE 7
This is an OpenOffice.org forum. Nothing to do with MS Office. You should ask their own forums.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
Re: Open an Office 2007 document in IE 7
Ubuntu 14.10 Utopic Unicorn, LibreOffice Version: 4.3.3.2
Gurkha Welfare Trust
Gurkha Welfare Trust