P
Patrick Huang @ USTC
Hello!
I have developed a shared add-in for Word 2000, when I opened a Word
document(let me call this application A), the add-in loaded automatically,
then called a COM DLL to do Word Automation. So, another Word instance(call
it B) started. After some operation, B was closed by COM DLL. Just this
moment, because A & B both use a same normal template normal.dot, there pop
up a warning dialog say "Word cannot save this file because it is already
open elsewhere(C:\.....\normal.dot)".
And in the COM DLL, I have tried to use
Application.Quit SaveChanges:=wdDoNotSaveChanges
or
Application.NormalTemplate.Saved = True
But the result are same, the Annoying dialog still exists.
Could some one give me a suggestion to solve this problem? You help will be
greatly appreciated!
I have developed a shared add-in for Word 2000, when I opened a Word
document(let me call this application A), the add-in loaded automatically,
then called a COM DLL to do Word Automation. So, another Word instance(call
it B) started. After some operation, B was closed by COM DLL. Just this
moment, because A & B both use a same normal template normal.dot, there pop
up a warning dialog say "Word cannot save this file because it is already
open elsewhere(C:\.....\normal.dot)".
And in the COM DLL, I have tried to use
Application.Quit SaveChanges:=wdDoNotSaveChanges
or
Application.NormalTemplate.Saved = True
But the result are same, the Annoying dialog still exists.
Could some one give me a suggestion to solve this problem? You help will be
greatly appreciated!