J
Jeroen ter Hofstede
[Posted to microsoft.public.word.programming and
microsoft.public.word.oleinterop. If there is a better place to post
this, please let me know.]
Our application uses and controls Word in order to have the user edit
documents of the application. To that end, it creates a Word object
using OLE, which starts up a WINWORD.EXE process.
It now appears that some other applications, most notably the Word
browser plug-in, will use that same WINWORD.EXE process to open their
documents. Furthermore, if the document opened in that application (the
browser, say) is active, the calls our application makes to Word are no
more handled correctly.
We've tried several workarounds to no avail (trying to activate Word
from within our app fails, starting a "decoy" word first may foil the
browser, but is also used when the user double-clicks a document and
can thus be closed, etc). What we actually would like to achieve is
that the WINWORD.EXE process that we start by instantiating a Word
application object via OLE cannot be hijacked by any other program.
Does anybody here know whether such a thing is possible?
Thanks in advance,
Jeroen
microsoft.public.word.oleinterop. If there is a better place to post
this, please let me know.]
Our application uses and controls Word in order to have the user edit
documents of the application. To that end, it creates a Word object
using OLE, which starts up a WINWORD.EXE process.
It now appears that some other applications, most notably the Word
browser plug-in, will use that same WINWORD.EXE process to open their
documents. Furthermore, if the document opened in that application (the
browser, say) is active, the calls our application makes to Word are no
more handled correctly.
We've tried several workarounds to no avail (trying to activate Word
from within our app fails, starting a "decoy" word first may foil the
browser, but is also used when the user double-clicks a document and
can thus be closed, etc). What we actually would like to achieve is
that the WINWORD.EXE process that we start by instantiating a Word
application object via OLE cannot be hijacked by any other program.
Does anybody here know whether such a thing is possible?
Thanks in advance,
Jeroen