Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 3 Jul 2008 00:43:00 -0700,    group: microsoft.public.word.oleinterop        back       


Notification when Word closes? (C#)   
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?
date: Thu, 3 Jul 2008 00:43:00 -0700   author:   -kve-

Re: Notification when Word closes? (C#)   
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 :-)
date: Thu, 10 Jul 2008 16:55:11 +0200   author:   Cindy M.

Re: Notification when Word closes? (C#)   
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 :-)
> 
>
date: Thu, 10 Jul 2008 08:27:00 -0700   author:   -kve-

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us