On Tue, 24 Sep 2013, Damaresh Dashora wrote:
Now, using that HSSFFont Object i'm fetching colour in this way (below
mentioned)....

int color = hssfFont.getColor();  //hssfFont is the object created
String fontColor = HSSFExcelColorMap.getHexCode(color);

I don't know where "HSSFExcelColorMap" comes from, but I'm not sure it's one of ours...

http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFPalette.html is what you want to use to turn an HSSF color index into an object with red/green/blue values

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to