On Sun, 10 Nov 2013, Herve Girod wrote:
I have two things that I would like to do and are surely feasible in XWPF, but I was not able to do them correctly: - Having more than one paragraph level in a document. Numbering is using BigInteger, so it's not possible to set more than one level there just by using the setNumID on paragraphs. - Setting the width of columns in a XWPFTable. And setting the table width only seems not to have any result for me.
I don't know the answer to either of these, but I do know how you can discover it for yourself... The X..F formats are all based on a zip of xml files, which makes them much easier when it comes to identifying what goes on in them. For these two cases, your best bet is to create a simple file in word, save it, make a tweak to numbering/columns, and save-as. Unzip the two files, diff the XML, and see what XML corresponds to the change
Short term, use the CT... objects to make the same change yourself. Longer term, please write up a nice usermodel patch to wrap that up in friendly functionality, and submit it as a patch :)
Nick --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
