Hi,

I have the problem that I want to use my own colors in Excel. I read the
 quick guide about custom colors and when registering my own color using
this method e.g. red with RGB(255,0,0) the color displayed in Excel is
not a read matching 255,0,0 but a much darker red it seems that it is
the red I'm getting with HSSFColor.RED what am I doing wrong.

Here's the code I'm using:

-------------------8<-------------------
short colorIdx = 10;
palette.setColorAtIndex( colorIdx, (byte)255, (byte)0, (byte)0 );

...

style = workbook.createCellStyle();
style.setFillBackgroundColor(colorIdx);
style.setFillPattern(HSSFCellStyle.BIG_SPOTS);
cell.setCellStyle(style);
-------------------8<-------------------

Is there something wrong what I'm doing?

I'm using the following POI-Packages:
- poi-2.5.1-final-20040804.jar
- poi-contrib-2.5.1-final-20040804.jar
- poi-scratchpad-2.5.1-final-20040804.jar

Thanks

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to