Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find any Word objects #21

Open
GermanAizek opened this issue Mar 6, 2024 · 2 comments
Open

How to find any Word objects #21

GermanAizek opened this issue Mar 6, 2024 · 2 comments

Comments

@GermanAizek
Copy link
Contributor

GermanAizek commented Mar 6, 2024

@totravel, many thanks and hello again.
How to find Word objects and return their, to then insert/replace before/after it and edit object properties.

Example:

  • GetWordImageItem (find and return object Image)
  • GetWordTableItem (find and return object Table)
  • etc ...
auto text = GetWordTextItem("TEXT FOR SEARCH");
text.SetText("NEW VALUE");

or

GetWordTextItem(string or formula or id element or xml node)
@GermanAizek GermanAizek changed the title How to find Word objects How to find any Word objects Mar 6, 2024
@totravel
Copy link
Owner

totravel commented Mar 6, 2024

Hmmm... minidocx is mainly used for creating documents and many of its components, especially the implementation of tables, are naïve and need to be rewritten.

@totravel
Copy link
Owner

totravel commented Mar 6, 2024

I prefer to make these improvements in the next generation. minidocx is currently not a reliable and full-featured library.

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

No branches or pull requests

2 participants