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
To close this issue (note that the basic problem was resolved: see my
response of 12/17):
I changed my code to:
"Content-Disposition"
and it had no effect. Gecko's header still showed all lower case, and
IE's header still showed cap C and lower D.
Thanks all, again, for the help!
Dick
on/vnd.ms-excel");
I'm not sure about the filname ending. It was always ".xls" for us in the
content-disposition, but never in the URL...
Hth,
Tobias
-Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Thursday, December 15, 2005 10:33 AM
To
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/octe
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
At 20:37 13/12/2005, you wrote:
Nick,
I us
etContentType("application/vnd.ms-excel");
I'm not sure about the filname ending. It was always ".xls" for us in the
content-disposition, but never in the URL...
Hth,
Tobias
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
>
ccording to some MS Knowledge Base article I can't remember, even a URL
like this will trick IE into treating it as a XLS.
Iain
-Original Message-
From: Christian Gosch [mailto:[EMAIL PROTECTED]
Sent: 15 December 2005 08:35
To: POI Users List
Subject: Re: HSSF Failure in IE
There m
There may be another issue, too, although I am curious about what happens
when using "Content-Disposition" in correct capitalization.
IE uses different information sources to determine whats coming over the
net, as I said before. I forgot to mention the "extension of the URL". Its a
bit funny, but
On Tue, 13 Dec 2005, Dick Hildreth wrote:
> content-disposition: attachment; filename=actionitems.xls
> Content-disposition: attachment; filename=actionitems.xls
The header is called "Content-Disposition", isn't it? (Note the
capitalisation - that's the form that RFC2183 has it in anyway)
Perhap
Nick,
I used IE Watch in IE and got:
Request Headers
GET /servlet/com.rminet.util.ExcelReport?reportEnvmt=actionitems HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/mswor
Thanks for the lead-in to the Live HTTP Headers, Nick!
I got:
http://localhost:11001/ActionItemsMaint.jsp
GET /servlet/com.rminet.util.ExcelReport?reportEnvmt=actionitems HTTP/1.1
Host: localhost:11001
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12)
Gecko/20050915 Firefo
On Tue, 13 Dec 2005, Dick Hildreth wrote:
It still works fine in gecko browsers and it still fails in IE. Same IE
error: File: actionitems.xls, Unknown File Type, 87.0 KB, and the File
does not exist. The filename is correct.
Can you check exactly what headers are getting sent? (Live HTTP he
byteArrayOut= null;
...
creating the Workbook
...
byteArrayOut = new ByteArrayOutputStream();
workBook.write( byteArrayOut );
And with byteArrayOut.toByteArray().length you get the desired
information.
Regards
Markus
-Original Message-
From: Dick Hildreth [mailto:[EMA
ArrayOut.toByteArray().length you get the desired
> >information.
> >
> >Regards
> >
> >Markus
> >
> >
> >
> >>-Original Message-
> >>From: Dick Hildreth [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, December 12,
red
information.
Regards
Markus
-Original Message-
From: Dick Hildreth [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 10:55 PM
To: POI Users List
Subject: Re: HSSF Failure in IE
Vielen dank, Christian!
I already had the Header Properties set up as you suggest. I
with byteArrayOut.toByteArray().length you get the desired
information.
Regards
Markus
> -Original Message-
> From: Dick Hildreth [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 12, 2005 10:55 PM
> To: POI Users List
> Subject: Re: HSSF Failure in IE
>
>
>
Vielen dank, Christian!
I already had the Header Properties set up as you suggest. I set them
in a slightly different order, though I don't expect that would be an issue.
One difference was that I had setDateHeader("Expires", 0) where you have
setHeader("Expires", 0).
I don't understand, h
(1) Use a byte[] for intermediate buffering, that should tell the truth. If
things get too big, you may underly a temp file.
(2) There are RFCs about how to set up the HTTP response header according to
HTTP 1.0 or 1.1 (therefore you should know what your HTTP server component
talks to its clients),
18 matches
Mail list logo