You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2010/04/26 12:39:25 UTC

DO NOT REPLY [Bug 49185] Implementation of HSSFName#getComment - descriptive text or comment record

https://issues.apache.org/bugzilla/show_bug.cgi?id=49185

--- Comment #1 from Nick Burch <ni...@alfresco.com> 2010-04-26 06:39:23 EDT ---
I think NameCmt may be quite a new thing

HSSFName is backed by a NameRecord (sid=0x18), which is called a "Lbl" in the
newer Microsoft docs (page 323 in v20091214)

HSSFName stores the comment in the DescriptionText field of NameRecord (field
15).

Interestingly, the latest docs on Lbl says that the various extra length fields
(eg the description) are reserved and must be zero, so clearly Microsoft have
changed something at some point. This would explain why new files don't have
comments in the same way

I'd suggest you add support for the NameCmt record, and update HSSFName to
check it if the description text on a NameRecord is of length zero

-- 
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