Hello All,
I'm having a problem applying a background color to cells and applying
multiple styles to the same cell ie font, bold and background color. I'm
using version POI 1.5.0
The code is:
//style0 bold font.
HSSFFont font = wb.createFont();
HSSFCellStyle style0 = wb.createCellStyle();
font.setBoldweight((short)0x2bc);
style0.setFont(font);
//style1 bright green background color.
HSSFCellStyle style1 = wb.createCellStyle();
style1.setFillBackgroundColor((short)0xb);
//style2 bright grey background color.
HSSFCellStyle style2 = wb.createCellStyle();
style2.setFillBackgroundColor((short)0x16);
My font style code works, but the colors dont' show up. I also don't know
how to combine cell styles for the same cells and get that to compile.
The syntax in the How To guide shows this code below, but it won't compile,
even though I import the util jar where the classes are located? Any ideas??
style1.setFillBackgroundColor(HSSFColor.AQUA.index);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]