A
Alan T
These are the codes I created a document:
_WordApp = new Interop.Word.Application();
_WordApp.Visible = false;
_WordDoc = new Document();
_Missing = System.Reflection.Missing.Value;
_WordDoc = _WordApp.Documents.Add(ref _Filename, ref _Missing, ref _Missing,
ref _Missing);
The problem I have is it will create another instance of Word.
If I have already a Word is running, it will have another Word running.
How do I detect if there is another Word is running so that I can assign
that instance to _WordApp?
_WordApp = new Interop.Word.Application();
_WordApp.Visible = false;
_WordDoc = new Document();
_Missing = System.Reflection.Missing.Value;
_WordDoc = _WordApp.Documents.Add(ref _Filename, ref _Missing, ref _Missing,
ref _Missing);
The problem I have is it will create another instance of Word.
If I have already a Word is running, it will have another Word running.
How do I detect if there is another Word is running so that I can assign
that instance to _WordApp?