Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141923 | Jan 10,2019 02:41 PM UTC | Jan 16,2019 09:07 AM UTC | WinForms | 1 |
![]() |
Tags: DocIO |
Dim document As WordDocument = New WordDocument("exemple.docx")
Dim bkmkNavigator As BookmarksNavigator = New BookmarksNavigator(document)
bkmkNavigator.MoveToBookmark("numLocalAC1")
Dim cellIndex As Integer = -1
If bkmkNavigator.CurrentBookmark IsNot Nothing AndAlso bkmkNavigator.CurrentBookmark.BookmarkStart IsNot Nothing Then
Dim ownerParagraph As WParagraph = bkmkNavigator.CurrentBookmark.BookmarkStart.OwnerParagraph
If ownerParagraph.IsInCell Then
Dim ownerCell As WTableCell = TryCast(ownerParagraph.OwnerTextBody, WTableCell)
If ownerCell IsNot Nothing Then cellIndex = ownerCell.GetCellIndex()
End If
End If |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.