none
Replace text in a RUN RRS feed

  • Question

  • Greetings everybody!

    I am new in OpenXML. I am writing a program for translating a .docx document. I have a string list with the translated text for all the text nodes in the Runs. Can anybody tell me how to replace the values of these <w:t> elements using OpenXML?

    Sunday, June 10, 2012 4:07 PM

Answers

  • What you are trying to do is not that easy. You should know that event words are sometimes splited into more than one w:t tag. So the algorithm for replacing words is much more complicated.

    Try using Eric White's Text Replacer. It is not perfect but can do the trick for most cases.

    Monday, June 11, 2012 9:31 AM

All replies