Hello,
I need to process mergefields within specific bookmarks.
If I can get the FieldStart nodes that are between the start and End bookmark nodes, that would be perfect.
Given an approach I used to get all the fieldStarts from the document:
doc.GetChildNodes(NodeType.FieldStart, True)
I initially tried something like
Dim myNode As Node = myBookmark.BookmarkStart
While Not (myNode.NodeType = NodeType.BookmarkEnd)
Dim temp As NodeCollection
temp = myNode.GetChildNodes(NodeType.FieldStart, True)
myFieldNodeCollections.Add(temp)
myNode = myNode.NextSibling
End While
But “GetChildNodes” is regretfully only available on the document node itself.
Is there another way to get the FieldStart nodes I need?
Ewald