Re: setFillForeground to an XSSFColor

Dominik Stadler <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <CABdJj57wXXgb5DgzP9VBOk0_5cZ2q9OfMEOJzxthgJy8GXB=Ew@mail.gmail.com>
Hi,

please try to set the fill pattern via

style.setFillPattern(FillPatternType.SOLID_FOREGROUND);

See also
http://poi.apache.org/components/spreadsheet/quick-guide.html#FillsAndFrills

Thanks... Dominik.


On Mon, Feb 24, 2020 at 6:27 PM Huw Coxon <[email protected]> wrote:

>
> I'm having real problems setting the color of the Fill foreground for a
> cell using Apache POI commons
> code. I was under the impression from the javadoc that this method was
> available:
>
> void    setFillForegroundColor(short fg)
> Set the foreground fill color as a indexed color value
>
> Note: Ensure Foreground color is set prior to background color.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.