Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 974897B0B for ; Wed, 3 Aug 2011 02:55:12 +0000 (UTC) Received: (qmail 53058 invoked by uid 500); 3 Aug 2011 02:55:12 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 52875 invoked by uid 500); 3 Aug 2011 02:55:09 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 52867 invoked by uid 99); 3 Aug 2011 02:55:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 02:55:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 02:55:06 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 50FC048478; Wed, 3 Aug 2011 02:54:46 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 51604] replace text fails for doc ( poi 3.8 beta release from download site ) Date: Wed, 03 Aug 2011 02:54:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HWPF X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: sanmoy@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: OS/Version Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=51604 sanmoy changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version| |All --- Comment #1 from sanmoy 2011-08-03 02:54:44 UTC --- One addition, fileOutputStream.close() is present in the original code, by mistake, which i didn't copy while raising the defect. Please remember, the following code is working perfectly XWPFDocument xwpfDocument = new XWPFDocument(inputStream); List paragraphs = xwpfDocument.getParagraphs(); for(XWPFParagraph xParagraph:paragraphs) { for(XWPFRun xwpfRun : xParagraph.getRuns()) { xwpfRun.setText("replace", 0); } } xwpfDocument.write(outputStream); outputStream.close(); -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org