how to change table height in docx4j
Posted: Tue Feb 11, 2014 11:19 pm
please tell me how to change table height in docx4j
thanks in advace..
thanks in advace..
forums
https://www.docx4java.org/forums/
https://www.docx4java.org/forums/docx-java-f6/how-to-change-table-height-in-docx4j-t1775.html
factory = Context.getWmlObjectFactory();
table = factory.createTbl();
TrPr trPr = new TrPr();
CTHeight ctHeight = new CTHeight();
ctHeight.setHRule(STHeightRule.EXACT);
JAXBElement<CTHeight> jaxbElement = factory.createCTTrPrBaseTrHeight(ctHeight);
trPr.getCnfStyleOrDivIdOrGridBefore().add(jaxbElement);