You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by mouss4rs <ou...@gmail.com> on 2012/04/06 15:57:22 UTC

to set border in black

Hi,

i would like to set border in black like this:
...
cell2 = row2.createCell(2);//on l'écrit à la colonne 2 (semaine 51)
cell2.setCellValue(tabheures[1][z]/24.0);
cellStyle = wb2.createCellStyle();
cellStyle.setDataFormat(fmt.getFormat("hh:MM"));
*cellStyle.setBorderBottom(BorderStyle.THIN);
cellStyle.setBottomBorderColor(IndexedColors.BLACK.getIndex());*cellStyle.setAlignment(HorizontalAlignment.CENTER);
cell2.setCellStyle(cellStyle);
...

but i didn't have border.

Is it good ?

Thanks

--
View this message in context: http://apache-poi.1045710.n5.nabble.com/to-set-border-in-black-tp5622803p5622803.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: to set border in black

Posted by mouss4rs <ou...@gmail.com>.
It's style.setBottomBorderColor.


--
View this message in context: http://apache-poi.1045710.n5.nabble.com/to-set-border-in-black-tp5622803p5630114.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org