You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by samia <sa...@gmail.com> on 2011/04/12 12:53:01 UTC
How to Change Table Row Colour in a Word Document ?
Hi,
I have created a table using XWPF and written it to a word document. Now
I need to change the colour of the table's header (i.e first row) but can
not
figure out how to do so. Is there any way i can do it using POI?
Following is the code is use to create the table :
XWPFDocument doc = new XWPFDocument();
XWPFTable table=doc.createTable(4,9);
//How to set the background colour of this row?
table.getRow(1).getCell(0).setText("Column1");
.....
Waiting for a response...
--
View this message in context: http://apache-poi.1045710.n5.nabble.com/How-to-Change-Table-Row-Colour-in-a-Word-Document-tp4297929p4297929.html
Sent from the POI - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org