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 B9A5F9BDC for ; Sat, 25 Feb 2012 14:13:23 +0000 (UTC) Received: (qmail 31377 invoked by uid 500); 25 Feb 2012 14:13:23 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 31345 invoked by uid 500); 25 Feb 2012 14:13:23 -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 31337 invoked by uid 99); 25 Feb 2012 14:13:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Feb 2012 14:13:23 +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; Sat, 25 Feb 2012 14:13:21 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 4361450194; Sat, 25 Feb 2012 14:13:00 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 52764] Unmodified cell comments disappear after HSSFWorkbook.write Date: Sat, 25 Feb 2012 14:12:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kl223hun@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: Status 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 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=52764 Laszlo Kustra changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #2 from Laszlo Kustra 2012-02-25 14:12:59 UTC --- (In reply to comment #1) > How are you creating the additional comments? Does it by any chance include a > call to createDrawingPatriarch? > > If so, you should note the warning in the javadocs - > http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFSheet.html#createDrawingPatriarch() > - "This will have the effect of removing any existing drawings on this sheet." > > (Comments are a kind of drawing) Please have a look at the attached test program to see the answer for yourself. I only call the createDrawingPatriarch() method once, when creating the sheet. The second time, after loading the file from the disk to modify cell comments, I call the getDrawingPatriarch() method to get the existing instance. -- 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