hi! i want to open a word document directly from a windows form application running on visual studio 2010! i tried a particular code but it wont work!!! this is the code!
this.Application.Documents.Open(@"C:\Test\NewDocument.doc");i also imported and used the following header:
using Microsoft.Office.Interop.Word;it says that the word application does not exists! Can anyone help me out with this
thanks in advance!
Did you check if Word is installed on the particular computer? And you can always use Process.Start to start a program/open a document. Here is some more information about how to open a word document in C#: http://omegacoder.com/?p=555