Hi,
i'am always evaluate your product,
i have a table with two rows
the first one is the header and the second in empty
the first row containt cells with specific bookmark,
i want to recupere the cellindex of specific bookmark
i use the current code but he don't find any bookmark in cell just wtextrange.
//code
Dim bknav As BookmarksNavigator = New BookmarksNavigator(a)
bknav.MoveToBookmark("tableauAC1")
Dim tbp As TextBodyPart = bknav.GetBookmarkContent
Dim table As WTable = Nothing
For Each element As IEntity In tbp.BodyItems
If TypeOf element Is WTable Then
table = CType(element, WTable)
Exit For
End If
Next
For Each cell As WTableCell In table.Rows(0).Cells
For Each para As WParagraph In cell.Paragraphs ' y a que paragraph a l'interieur
For Each element In para.ChildEntities
If TypeOf (element) Is BookmarkStart Then
bkname = TryCast(element, BookmarkStart).Name
currindex = cell.GetCellIndex
If bkname = "numLocalAC1" Then
indexNom = currindex
bktodelete.Add(bkname)
End If
If bkname = "localAC1" Then
indexPrenom = currindex
bktodelete.Add(bkname)
End If
If bkname = "numLotAC1" Then
indextelephone = currindex
bktodelete.Add(bkname)
End If
End If
Next
Next
Next
// end code
in piece joint you will find the document.
-------- ADD ------
after i use the 16.4 librairy the espion express don't give me any information.
thanks have a nice day
Attachment:
exemple_93b491c5.zip