I am trying to open a office 2007 document a .xlsx file
I am using tomcat 6.18 on Windows XP 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...
but i need it to open it in excel 2007
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"
--
View this message in context:
http://old.nabble.com/Tomcat-issue-%3A-open-a-office-2007-document-tp27183444p27183444.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]