Hi, I have a C# application that creates a Word document, opens it (for editing, or juist a print preview), and then sends it by mail. The problem is I get an error when I want to mail the document while it is still openend in Word. Is there any way Word can notify my program when it closes?
Hi =?Utf-8?B?LWt2ZS0=?=, > I have a C# application that creates a Word document, opens it (for editing, > or juist a print preview), and then sends it by mail. > The problem is I get an error when I want to mail the document while it is > still openend in Word. > Is there any way Word can notify my program when it closes? > What error? Which version of Word? What methods of the object model are you using? I'm discussing a similar problem in the VSTO forum... Are you that person? Cindy Meister INTER-Solutions, Switzerland http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) http://www.word.mvps.org This reply is posted in the Newsgroup; please post any follow question or reply in the newsgroup and not by e-mail :-)
No, I'm not discussing on the VSTO forum... I found an answer to my problem: using the "Quit "-event of Word. "Cindy M." wrote: > Hi =?Utf-8?B?LWt2ZS0=?=, > > > I have a C# application that creates a Word document, opens it (for editing, > > or juist a print preview), and then sends it by mail. > > The problem is I get an error when I want to mail the document while it is > > still openend in Word. > > Is there any way Word can notify my program when it closes? > > > What error? > Which version of Word? > What methods of the object model are you using? > > I'm discussing a similar problem in the VSTO forum... Are you that person? > > Cindy Meister > INTER-Solutions, Switzerland > http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005) > http://www.word.mvps.org > > This reply is posted in the Newsgroup; please post any follow question or reply > in the newsgroup and not by e-mail :-) > >