Replies: 2 comments 3 replies
-
If you add the table where is the cursor, you replace the content then the bookmark is lost because the flextable is now the new content |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi David,
Thank you very much.
I still don’t understand it.
May I ask one more question: Why is body_add_flextable() working if I add the table to the bookmark without the caption?
I tried to add the caption during the creation of the table and it works if I only print(…docx), so without the bookmark.
With the bookmark I get an error something like "the the style is not matching” - I tried out the different styles
Bw
René
… On 9. Jul 2023, at 15:07, David Gohel ***@***.***> wrote:
body_add_flextable (value = table, pos = "on")
If you add the table where is the cursor, you replace the content then the bookmark is lost because the flextable is now the new content
—
Reply to this email directly, view it on GitHub <#552 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ALDYTKHAXBZWR4OYQVKJ3MTXPKUKJANCNFSM6AAAAAAZYULYIQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have an issue what I can not solve on my own. Maybe someone has an idea to help me.
Issue: I can´t set a caption for a table in conjunction with a bookmark. (It works for charts for example: read_docx("some Word with bookmarks_graph") %>% docx_bookmarks() %>% cursor_bookmark( "NameOfBookmark")%>%body_add_par ("SomeTitle") %>% body_add_gg(Waterfall) ).
But this is not working for tables:
read_docx("some Word with bookmarks") %>%
docx_bookmarks() %>%
cursor_bookmark( "NameOfBookmark")%>% body_add_par("My flextable", style = "heading 3")%>%
body_add_flextable (value = table, pos = "on") %>%
print(target = "U/...")
Thank you very much and I hope its sounds not to trivial.
Beta Was this translation helpful? Give feedback.
All reactions