After doing some research, it seems that you can use Word Interlop to manipulate Word document (Open, modify, change etc.). Like this:
class Program
{
static void Main(string[] args)
{
Application ap = new Application();
Document doc = ap.Documents.Open(@"C:\temp\TestDoc.docx");
doc.Activate();
}
}
But doing it that way, the MS word application itself with the GUI are not showing. I suspect it does not get started at all. I can only see WINWORD.EXE in the Processes tab of the Windows Task Manager but not in Applications tab.
What I want to do is:
- Starting the MS Word application
- open the document
- Show it to the end user, so they can modify/save it.
How can I do this?
If you want to stick with using Office Interop, then I think you can get what you’re looking for by setting the
Visibleproperty of theApplicationinstance to true after you open the document.