formatting table row height
Posted: Sat Nov 20, 2010 5:51 am
is there a way to specify the height of a row in a table?
the xml generated (this was done in PPT, but I'd assume Word's is the same):
I have no problem setting the column width (TblGridCol has setW)
I can add the rows with
Unforunately org.docx4j.wml.Tr has no "H" property to set.
Same goes for TrPr, or CTTblPrEx.
Is this an oversight in the API, or is there another way to do it that I'm missing. I haven't looked into setting it on individual cells, yet; though this seems like the easier/preferrable method.
the xml generated (this was done in PPT, but I'd assume Word's is the same):
- Code: Select all
<a:tbl>
...
<a:tblGrid>
<a:gridCol w="2057400"/>
<a:gridCol w="2006600"/>
<a:gridCol w="2032000"/>
</a:tblGrid>
...
<a:tr h="1143000">
<a:tr h="1143000">
</a:tbl>
I have no problem setting the column width (TblGridCol has setW)
I can add the rows with
- Code: Select all
tbl.getEGContentRowContent().add(tr);
Unforunately org.docx4j.wml.Tr has no "H" property to set.
Same goes for TrPr, or CTTblPrEx.
Is this an oversight in the API, or is there another way to do it that I'm missing. I haven't looked into setting it on individual cells, yet; though this seems like the easier/preferrable method.