You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Bello Martinez Sergio <SE...@televes.com> on 2006/04/11 14:02:35 UTC
Problems xls cell color
Hi all,
I'm having problems setting a xls' cell background color. If I use the
sentences in guide line at
http://jakarta.apache.org/poi/hssf/quick-guide.html
(style.setFillBackgroundColor(HSSFColor.AQUA.index);
style.setFillPattern(HSSFCellStyle.SOLIDFOREGROUND);), I get a black cell
(all the cell black, no matter the color I choose). Can anybody help me? Am
I forgetting anything?
Thanks a lot
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
Re: Problems xls cell color
Posted by Eduardo David <ed...@gmail.com>.
Hi,
Try this:
style.setFillPattern(HSSFCellStyle.SOLIDFOREGROUND);
style.setFillForegroundColor( HSSFColor.AQUA.index );