minidocx
minidocx copied to clipboard
How to find any Word objects
@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)
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.
I prefer to make these improvements in the next generation. minidocx is currently not a reliable and full-featured library.