Return-Path: Delivered-To: apmail-jakarta-poi-dev-archive@www.apache.org Received: (qmail 90205 invoked from network); 11 Aug 2006 15:37:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 15:37:24 -0000 Received: (qmail 4746 invoked by uid 500); 11 Aug 2006 15:37:24 -0000 Delivered-To: apmail-jakarta-poi-dev-archive@jakarta.apache.org Received: (qmail 4518 invoked by uid 500); 11 Aug 2006 15:37:23 -0000 Mailing-List: contact poi-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Developers List" Reply-To: "POI Developers List" Delivered-To: mailing list poi-dev@jakarta.apache.org Received: (qmail 4507 invoked by uid 99); 11 Aug 2006 15:37:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 08:37:23 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 08:37:22 -0700 Received: by brutus.apache.org (Postfix, from userid 33) id 61F5F7142E4; Fri, 11 Aug 2006 15:34:35 +0000 (GMT) From: bugzilla@apache.org To: poi-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 13265] - Could not generate Excel File. Having all ASCII characters. In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20060811153435.61F5F7142E4@brutus.apache.org> Date: Fri, 11 Aug 2006 15:34:35 +0000 (GMT) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=13265 virupatel@hotmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED ------- Additional Comments From virupatel@hotmail.com 2006-08-11 15:34 ------- (In reply to comment #4) > Created an attachment (id=3347) --> (http://issues.apache.org/bugzilla/attachment.cgi?id=3347&action=view) [edit] > Sample of what is generated I came across the same problem and found that response buffer needs to be cleared before writing HSSF output to the console. This problem seems to be only with BEA Weblogic and the code works fine with other servers. The sample code is attached below. try{ OutputStream fOut = response.getOutputStream(); response.reset(); response.setContentType("application/vnd.ms-excel"); response.setHeader("Content-Disposition","inline;filename=report.xls"); workbook.write(fOut); fOut.flush(); fOut.close(); }catch(Exception e){ System.out.println("Error Occured"); } Hope that helps. Thanks Viral Patel -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta POI Project: http://jakarta.apache.org/poi/