<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#
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.