Hi I can write a table into a word document as the code below... I wonder how do you add table cell background colour?
IDocument myDoc = new Document2004();
//myDoc.addEle(BreakLine.times(1).create());
Table tbl = new Table();
tbl.addTableEle(TableEle.TH, "Jira Number", "Description","asd","ee");
myDoc.addEle(tbl);
yes you can.
Try to instantiate a TableV2 rather than Table.
take a look at the example:
http://java2word.blogspot.com.au/2012/02/huge-ms-word-documents-with-java2word.html
you'll have to do something like this "withStyle().bgColor("00FFFF")" in your fluent interface code.
cheers Leonardo Correa
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.