You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by cappelleh <ha...@gmail.com> on 2006/12/20 16:15:16 UTC

Re: HSSF Failure in IE

I had the same problem and solved it by looking at the headers of a working
application (phpMyAdmin has excel export). 

Using the following headers works for me:

//control cache, these make the difference
response.setHeader("Cache-Control", 
"must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "Public");
//these are xls specific
response.setHeader("Content-Disposition", 
"attachment; filename=action.xls");
response.setHeader("Content-Type", 
"application/vnd.ms-excel");


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/