holgerschlegel wrote:On reading a Word generated docx, Tbl objects are wrapped inside JAXBElement instances. Based on that I suspect that you need to add them wrapped like that (I did not test it).
eford wrote:holgerschlegel wrote:On reading a Word generated docx, Tbl objects are wrapped inside JAXBElement instances. Based on that I suspect that you need to add them wrapped like that (I did not test it).
Are you referring to "reading a Word generated docx" using docx4j? When I created a document using Word and examined the contents of the document.xml file I did not notice any wrapping of the table nodes. By the way, I'm not having a problem adding tables - I'm able to do that, as described, by adding the Tbl node directly as a blockelement.
eford wrote: My comment was more related to a preferred solution of using addObject. That method performs some internal style checking via call to traverseMainDocumentRecursive which currently only supports adding P and R nodes.
Users browsing this forum: Bing [Bot] and 56 guests