Situation:
I've got a document with a table and some rows in it. Due to some incoming data I want to duplicate a row and insert it again in the table. The row contains SdtBlocks in the cells.
The Problem is, if I'm doing something like this...
- Code: Select all
Tr newRow = (Tr) XmlUtils.unwrap(mytbl.getEGContentRowContent() .get(1));
mytbl.getEGContentRowContent() .add(2, newRow);
...the new row has no more SdtBlocks in the cells and I have no idea why (content is ok). I also tested the same prcedure with renaming the tag of the SdtBlock (SdtPr.getTag.setVal) and with the CTSdtRow instead of normal Tr but nothing worked.
Could somebodyhelp me with this issue?
kind regards
Lars