I am using this code to determine if there are tablestart and/or tableend fields. The GetFieldNames method is picking up all fields except the regions. Please compare this code to the attached document and let me know why.
Dim arr() As String = doc.MailMerge.GetFieldNames
Dim indexStart As Integer = 0
Dim indexEnd As Integer = 0
For i As Integer = StartHere To arr.Length - 1
If arr(i).ToLower.Contains("tablestart") Then
indexStart = i
End If
If arr(i).ToLower.Contains("tableend") Then
indexEnd = i
Exit For
End If
Next
Thank You!