Bug 35498 - Accessing and creating user-defined/named styles
Summary: Accessing and creating user-defined/named styles
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.5-FINAL
Hardware: All All
: P2 enhancement with 4 votes (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 15:53 UTC by Kristian Luck
Modified: 2011-06-24 10:01 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kristian Luck 2005-06-24 15:53:52 UTC
There doesn't appear to be a mechanism to retrieve a named style from an
HSSFWorkbook, nor is there a way to create a named style for a worksheet.  I
expected that since such convenience methods were not available on the
HSSFWorksheet, I could find a getName() method on the HSSFCellStyle class. 
Unfortunately it wasn't there either.  Quickly searching through the 2.5.1 POI
codebase, it appears that although the StyleRecord records reference
ExtendedFormatRecord records, no effort is made to tie these together and
provide users a mechanism to access styles by name, much less create them [by name].
Comment 1 Avik Sengupta 2005-07-05 14:37:03 UTC
Wanna provide a patch :)
Comment 2 Yegor Kozlov 2011-06-24 10:01:23 UTC
User-defined cell styles are supported in POI-3.8-beta3

Yegor