How to find and replace text programmatically – MS Word
nn nWhile working with the Add – In, came across the scenarionwhere I needed to replace the text in word document programmatically, this isnhow it can be done n nFollowing code finds the word occurrence andnreplaces with the desired characters in first paragraph of the document. n nprivate voidnFindAndReplaceText(object _wordToFind, object _replaceWith) n n{ n … Read more