The method works fine in most documents but not for mergefields inside a table cell.
I am trying to get all the mergefields inside the bookmarks by creating a new document out of the extracted contents. The contents of the bookmarks dont contain any nodes after the exceution of the ExtractContent-Method you provided.
ArrayList extractedNodesInclusive = ExtractContent(bookmarkStart, bookmarkEnd, true); Document tmpDoc = GenerateDocument(doc, extractedNodesInclusive);|
Example document is attached here
EAnlageBlatt.zip (29.8 KB)
Do you have a solution for this?