<name> Test 11 Test 22 </name>
Replaced >
<name> aaaaaaaaa </name>
Hi, How can I determine the contents of a range in WinWord.
How can I make for C#
<name> Test 11 Test 22 </name>
Replaced >
<name> aaaaaaaaa </name>
Hi, How can I determine the contents of a range in WinWord.
How can I make for C#
Use Word Automation to open the word document, read the text into your C# application and change it as needed, and then write it back to the word document and save it.
This sample shows how to create and write to a word document from C# which would probably be enough to get you started at least.
Be aware that you will have to have Word installed on the machine where it runs and that it's not recommended to run these kinds of solutions on servers.
Edit: Look at this page: Word Tasks for information about and samples for common tasks (including working with ranges) when automating Word from .Net.