We help IT Professionals succeed at work.

MS Word automation in C#

Tom Knowlton
Tom Knowlton asked
on
I have Visual Studio 2005 running on Windows Vista

I want to automate MS Word 2007 documents in my C# code.

Where do I begin?  The sample code I have found so far does not seem to work.  I have added the Word Object LIbrary to my Windows App References.
Comment
Watch Question

Senior .Net Consultant
CERTIFIED EXPERT
Top Expert 2016
Commented:
Tom KnowltonWeb developer

Author

Commented:
I just did ... and it worked.

For some reason having Microsoft.Office.Interop up in my using statements still meant I had to go:

Microsoft.Office.Interop.Word._Application

in my code.  I would have thought that I wouldn't have to type all of that each time.


But, it works....thanks!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.