poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52764] Unmodified cell comments disappear after HSSFWorkbook.write
Date Sat, 25 Feb 2012 14:12:59 GMT

Laszlo Kustra <kl223hun@gmail.com> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |NEW

--- Comment #2 from Laszlo Kustra <kl223hun@gmail.com> 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

View raw message