R
Rob Stewart
Is there a way to force Windows (XP) to open all Word documents (when their
icon is double clicked) in a new instance of Word?
I know there is the command line switch, but that doesn't help if the user
clicks a document icon.
I need to do this as we have a document with managed code attached. A number
of the custom menu items in that code require the document to be closed as
the final step. This is fine, except that as soon as you do a
Document.Close(), I find Word hangs as you have just closed the document to
which the executing code is attached. Solution: do an Application.Quit()
instead. Which is fine, until there are other, unrelated, documents open that
the user doesn't wish to close.
If I can guarantee any other docs will be open in their own instance of
Word, I can safely do Application.Quit() as there will only ever be 1
document open in that instance.
Any ideas?
Cheers,
Rob
icon is double clicked) in a new instance of Word?
I know there is the command line switch, but that doesn't help if the user
clicks a document icon.
I need to do this as we have a document with managed code attached. A number
of the custom menu items in that code require the document to be closed as
the final step. This is fine, except that as soon as you do a
Document.Close(), I find Word hangs as you have just closed the document to
which the executing code is attached. Solution: do an Application.Quit()
instead. Which is fine, until there are other, unrelated, documents open that
the user doesn't wish to close.
If I can guarantee any other docs will be open in their own instance of
Word, I can safely do Application.Quit() as there will only ever be 1
document open in that instance.
Any ideas?
Cheers,
Rob