Page 1 of 1

Replace text with comment word

PostPosted: Tue Aug 18, 2015 2:36 am
by alosatriani
How can i replace some particular text with a comment in my docx file?

I find a way to insert comments, but not how to replace text with a comment....

Please Help!

:roll:

Re: Replace text with comment word

PostPosted: Tue Aug 18, 2015 9:47 am
by jason
Replacing text is a matter of manipulating the paragraph's list of run level contents, or a given run's list of text etc items.

Depending on what you want to do, you might need to split or join text fragments.

Re: Replace text with comment word

PostPosted: Wed Aug 26, 2015 1:56 pm
by mcgullen
Can you post the xml for a sample run or a paragraph that you are working with? That way we can provide code samples.