Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / May 2008

Tip: Looking for answers? Try searching our database.

Response out of MS Outlook dialog box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adi - 12 May 2008 11:58 GMT
I am using VSTO with C# for creating Outlook Add-ins. I need to get
the response from the dialog box that pops up during various
operations like Save, Send, Close etc. The dialog box usually
contains
options like:
1. Save and send the item,
2. Don't save but keep the item open.

How can I get the response out of this dialog box?
Ken Slovak - [MVP - Outlook] - 12 May 2008 14:00 GMT
None of those dialog boxes provide outputs that you can receive or handle.

You can guess, if the user chooses to send then the Item.Send event will
fire. If they save the Item.Write event will fire and so on, but that's
about it.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

>I am using VSTO with C# for creating Outlook Add-ins. I need to get
> the response from the dialog box that pops up during various
[quoted text clipped - 5 lines]
>
> How can I get the response out of this dialog box?
Adi - 12 May 2008 14:29 GMT
Thanks for the reply.

My situation is kind of wierd where in I need to handle the save event
on Outlook appointment item. Within save event handler, I need to get
all item related information like entryId etc. (you can assume that
the save is must for me to proceed further) for which I save the item
first and then proceed further. But if the user changes Date/Time on
the MEETING item and Sends update, then the dialog box pops open when
I call Save within the Save event handler.

If user selects "Don't save but keep the meeting open", I need to
cancel the Send event.

Is there a work around for this issue?

Thanks.
Ken Slovak - [MVP - Outlook] - 12 May 2008 16:04 GMT
You can cancel Send inside the Send event handler. You can't really do what
you want from the Write event, but you can cancel the event, set a flag
there to indicate the event was cancelled and then call Save later from a
timer event handler or something like that. The flag would tell the Write
handler what state the code was in.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

> Thanks for the reply.
>
[quoted text clipped - 12 lines]
>
> Thanks.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.