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 2011/06/25 15:07:01 UTC
DO NOT REPLY [Bug 47182] Link between HSSFCell and StyleRecord is
broken
https://issues.apache.org/bugzilla/show_bug.cgi?id=47182
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Yegor Kozlov <ye...@dinom.ru> 2011-06-25 13:07:01 UTC ---
In your case the user style is a parent of the cell style. The correct code to
check UserStyleName is below:
HSSFCellStyle style = cell.getCellStyle();
if(style.getParentStyle() != null){
HSSFCellStyle parentStyle = style.getParentStyle();
String styleName = parentStyle.getUserStyleName();
}
Yegor
--
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