How to find content within a textbox?

Mariam Sulakian (Pincites) 0 Reputation points
2025-01-14T18:52:49.14+00:00

I know from the parsed ooxml (and visually) that there are textboxes with text inside them in my Word file.

However, I can't use context.document.body to access textboxes nor can I use context.document.contentControls, which comes out as an empty array. And Word.Shape says it's not to be used in production...so how can I extract the text content from textboxes?

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
936 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,870 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,200 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.