minidocx icon indicating copy to clipboard operation
minidocx copied to clipboard

How to find any Word objects

Open GermanAizek opened this issue 11 months ago • 2 comments

@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 avatar Mar 06 '24 13:03 GermanAizek

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 avatar Mar 06 '24 16:03 totravel

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

totravel avatar Mar 06 '24 16:03 totravel