poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: POI HSSFSheetConditionalFormatting can't read font color of the specified cell
Date Thu, 24 Nov 2011 11:44:01 GMT
On Wed, 23 Nov 2011, bin su wrote:
> but if the cell is formated with HSSFSheetConditionalFormatting and 
> HSSFConditionalFormattingRule,then condition rule like ">=1000",the cell 
> font color is red, but when i get the font color of the cell, the 
> console print: color:32767,i get a black color, how can i get the right 
> color under the HSSFConditionalFormattingRule.

The normal colour stuff doesn't know anything about conditional 
formatting, so returns the colour that the cell claims it has. You'll need 
to do any conditional formatting work yourself alas

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message