Consider what you're asking:
"I want to make a web page that starts up applications on the client's
system. I do not want to ask the user first. I have not considered the
possibilities such a capability would present to a malicious person. Is it
possible?"
In a word, no. Why not just show a link to the Word doc and let Word do
what it does by default when you open a document? If you double-click two
documents in Windows Explorer it doesn't open two instances of Word, I'm
pretty sure it won't do that here either.
(Note, from Word 98 (?) on it LOOKS like there are two instances open but
there really aren't, they changed it to open docs in separate desktop
windows rather than child windows inside the "Word window")
(FAQ?)
Greg
-----Original Message-----
From: arjun_ksr@y... [mailto:arjun_ksr@y...]
Sent: Thursday, December 05, 2002 9:34 PM
To: javascript
Subject: [javascript] Instantiating Word on Client Machine
I have been going through the examples of creating and using
Word.Application on client machine. I am stuck with the following problem.
I am trying to avoid having multiple instances of Word on client machine.
I have read about GetObject and ..But not sure how to use it.
This is the requirement:
If word is not already running on the machine, create an instance.
If word is already running, use the existing instance.
If not possible to get an instance created by other process, it is OK to
have the current process to create it and kill the instance when done.
first of all, is this possible? Does any one have exampales of this code?
Thank you