I have built an application for creating and displaying an Excel spreadsheet. It works beautifully when accessed using Mozilla or Firefox (haven't tested with Netscape) but fails when using MSIE.

It appears that IE refuses to download the file (it also doesn't recognize the content type) since, when Excel or OOo Calc open, they complain that the file (in the Temporary Internet Files directory structure) isn't found. It isn't found for good reason - it isn't there!

From browsing other projects, such as iText on SourceForge, it appears that IE demands to know how big the stream is (setContentLength). Unfortunately, I can't figure out how to measure the length to set it properly. JavaDocs explicitly says that WorkBook.getBytes() "get(s) the bytes of just the HSSF portions of the XLS file". Apparently, there are bytes being sent other than these bytes, since stting the ContentLength to the lenth of getBytes() causes the geckop browsers to fail also.

I would appreciate some insight as to how I might overcome this problem.


---------------------------------------------------------------------
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/

Reply via email to