I
Ian T
I have been developing a .NET word mailmerger (closely following
http://support.microsoft.com/kb/301656 as an example), and while I cannot see
anything in the code that would cause Normal.dot to be changed, the
"normal.dot has been changed..." dialog box comes up every time I close the
word application after doing a mail merge from the code.
Due to certain limitations, I cannot close the word application when I am
done with it, and any more mail merges open up new word applications, all of
which make changes to Normal.dot and then, when closed, complain that
Normal.dot is in use by another application.
Other limitations mean I have to use late binding to any word objects that I
create in my application.
My current idea is to have a static (shared) word application object that
gets used for each mailmerge. I believe this would get round the problem of
having multiple word applications trying to save changes to Normal.dot, but
this strikes me as only a work around to the real issue of why Normal.dot is
being changed in the first place.
Any suggestions?
Thanks,
Ian
http://support.microsoft.com/kb/301656 as an example), and while I cannot see
anything in the code that would cause Normal.dot to be changed, the
"normal.dot has been changed..." dialog box comes up every time I close the
word application after doing a mail merge from the code.
Due to certain limitations, I cannot close the word application when I am
done with it, and any more mail merges open up new word applications, all of
which make changes to Normal.dot and then, when closed, complain that
Normal.dot is in use by another application.
Other limitations mean I have to use late binding to any word objects that I
create in my application.
My current idea is to have a static (shared) word application object that
gets used for each mailmerge. I believe this would get round the problem of
having multiple word applications trying to save changes to Normal.dot, but
this strikes me as only a work around to the real issue of why Normal.dot is
being changed in the first place.
Any suggestions?
Thanks,
Ian