I\'m using WinForms. I have a form that has a button.
Goal: On button click: Open up a word document. Where the file path is hard coded into the program. I don\'t want
first add the dll of Microsoft.Office.Interop.Word to your references then add this:
Microsoft.Office.Interop.Word
using Microsoft.Office.Interop.Word;
and use the following code:
Application ap = new Application(); Document document = ap.Documents.Open(@"C:\Test\NewDocument.docx");