Most probably issue is related to Content Type header. What happens if you write to a file on weblogic server with xls extension and open from there?
If you can get it to work by writing to a file but not through servlet output stream, you need to check if web -----Original Message----- From: Prasanna Balaji [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 9:47 PM To: 'POI Users List' Subject: Excel Export Hi, I used POI to create Excel Report but when I try to do export in WebLogic, I get some garbage data. It works fine in Tomcat and in WebSphere. response.setContentType("application/vnd.ms-excel"); ServletOutputStream sosStream = response.getOutputStream(); //Writing WorkBook to output Stream wb.write(sosStream); sosStream.flush(); sosStream.close(); Any input is appreciated on this. Thanks, Prasanna --------------------------------------------------------------------- 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/ -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.3/331 - Release Date: 5/3/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.3/331 - Release Date: 5/3/2006
