Skip to content

Conversation

@github-actions
Copy link
Contributor

No description provided.

@YoanKar YoanKar requested a review from dessyordanova July 24, 2024 07:57

## Description

When working with documents, it's common to need to find a table that contains a specific bookmark. This can become complex when dealing with nested tables, as a bookmark could be situated within multiple layers of tables. This KB article outlines methods to find either the innermost or outermost table containing a given bookmark, catering to scenarios involving nested tables.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"common to need to find" >> "a common requirement to find"

type: how-to
page_title: How to Retrieve a Table by Bookmark in RadWordsProcessing
slug: radwordsprocessing-find-table-by-bookmark
tags: radwordsprocessing, document processing, bookmarks, table, nested tables
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it is better to use separate words as tags for better SEO


## Solution

To find a table containing a specific bookmark, especially in documents with nested tables, you can use the following two methods: `GetInnermostTableContainingBookmark` and `GetOutermostTableContainingBookmark`. These methods help in identifying either the innermost or outermost table that contains the bookmark, depending on the nesting level of tables in the document.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"following two methods with custom implementation"

Table innermostTable = GetInnermostTableContainingBookmark(bookmark);
Table outermostTable = GetOutermostTableContainingBookmark(bookmark);
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it is good to have one piece of code that lists all the steps before the snippet.

@YoanKar YoanKar requested a review from dessyordanova August 12, 2024 09:56
@YoanKar YoanKar merged commit 9cc5035 into master Aug 27, 2024
@YoanKar YoanKar deleted the new-kb-radwordsprocessing-find-table-by-bookmark-faa605e770b34efbb917964e9b91d58b branch August 27, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants