How to Edit MS Word Text with C# Console Application
http://down--tech.blogspot.com/2015/01/how-to-edit-ms-word-text-with-c-console.html
How to Edit MS Word Text with C# Console Application
Hello Everyone,
Today i am going to show you how to edit Microsoft Word File using C# Step by Step.
So Lets Start !
First Step :- Create New Console Application Project and name it what ever you want.
Second Step :- Now add Microsoft.Office.Interop.Word Reference.
Third Step :- Now Create New or Open Your Microsoft Word Document File and Add some special name which can easy to Find and Replace.
In my case i want to edit First Name and Last Name so I will type this :-
<firstname>
<lastname>
Fourth Step :- Now add this Code in your Program.cs File and Run the Program.
Code :- http://pastebin.com/BTVyHEQ5
Fifth Step :- Now Open your Microsoft Word File and see your edits :)
Now you are done :)
Thanks,
Ch. Muhammad Osama
Today i am going to show you how to edit Microsoft Word File using C# Step by Step.
So Lets Start !
First Step :- Create New Console Application Project and name it what ever you want.
Second Step :- Now add Microsoft.Office.Interop.Word Reference.
Third Step :- Now Create New or Open Your Microsoft Word Document File and Add some special name which can easy to Find and Replace.
In my case i want to edit First Name and Last Name so I will type this :-
<firstname>
<lastname>
Fourth Step :- Now add this Code in your Program.cs File and Run the Program.
Code :- http://pastebin.com/BTVyHEQ5
Fifth Step :- Now Open your Microsoft Word File and see your edits :)
Now you are done :)
Thanks,
Ch. Muhammad Osama





