hi, all.
i had a excel download problem, too. and i also don't know
if this is related to the problem of Dick, but couble be a hint.
on my project a year ago, i needed to dynamically generate
an excel report and this is the code snippet.
-- code start --
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition", "attachment; filename=\"" +
new String( filename.getBytes("Windows-31J"), "ISO8859_1") + "\"");
response.setContentLength( baos.size() );
// cache related header only when the scheme is http since
// IE fails to download if headers below exist if the shema is https.
if ( "http".equalsIgnoreCase( request.getScheme() ) ) {
response.setDateHeader("Last-Modified", System.currentTimeMillis() );
response.setDateHeader("Expires", 0 );
response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-cache");
}
-- code end --
above code, baos is a ByteArrayOutputStream which is a generated Excel of
the webapp.
regards
ichy
2005/12/17, Rosa Etxabarri <[EMAIL PROTECTED]>:
>
> I had a problem downloading excel files, I don't know if it is the
> same problem.
>
> My solution was to change the Cache-Control
>
> Cache-Control: no-store
>
> to
>
> Cache-Control: revalidate
> or
> Cache-Control: must-revalidate
>
> I don' t remember very well
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/