how to set table border color in docx4j
Posted: Wed Feb 05, 2014 12:20 am
in docx 4j the following code is for table border color :
but i want how to set the table border color, please provide solution,
thanks in advance..
- Code: Select all
Tbl table = factory.createTbl();
table.setTblPr(new TblPr());
CTBorder border = new CTBorder();
[u]border.setColor("maroon");[/u]
border.setSz(new BigInteger("10"));
border.setSpace(new BigInteger("0"));
border.setVal(STBorder.SINGLE);
TblBorders borders = new TblBorders();
borders.setBottom(border);
borders.setLeft(border);
borders.setRight(border);
borders.setTop(border);
borders.setInsideH(border);
borders.setInsideV(border);
but i want how to set the table border color, please provide solution,
thanks in advance..