I am instantiating the word (14) with interop from a winforms C # .net4 application to work with a document. If any word document is opened outside my application, the same instance of the word will be used, it violates my application.
A simple question : Is there a way to install an instance of my word exclusively for my application?
Thanks in advance.
Btw: Some things were found with exclusive / word / office / isolated / block / instance, but no answers.
- , . , Word ROT ( ), Word, ROT (, , VB GetObject).
, 2
, , "" ROT, , , , , , ROT, .
, Word, . ? Word ALSO ROT. .
, Word .
, , - ActiveDocument. ActiveDocument, - , ( ).
ActiveDocument
:
Sub NewDoc() Dim d As Document Set d = Documents.Add(Visible:=False) End Sub Sub ExistingDoc() Dim d As Document Set d = Documents.Open(FileName:="C:\myexisting.doc") End Sub
d , ActiveDocument.
d