poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From samia <samiaazhar1...@gmail.com>
Subject How to Change Table Row Colour in a Word Document ?
Date Tue, 12 Apr 2011 10:53:01 GMT

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
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?


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

View raw message