View Single Post
  #2  
Old July 10th 07, 03:59 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 save changes dialog box

As far as I know you can't read the return from that dialog or prevent it
from showing if you change a meeting item where updates to the recipients
are going to be sent out.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"GR" wrote in message
ups.com...
Hi All,

I have noticed another change in Outlook 2007 from the previous
versions.

In my AddIn, I have code that does an oAppointment.Save command along
the way. In the previous versions of Outlook this did not generate any
kind of prompt to the user. However, in Outlook 2007 when the
oAppointment.Save command is executed, Outlook pops up a dialog box
giving the user 2 choices. The first is "Save changes and send update"
and the second choice is "Don't save but keep the meeting open".

If the user selects to "Save changes and send update", this is causing
the recipients to receive 2 update email messages because Outlook
sends one right then and my code later on downstream is sending the
update after I've modified it (this is how it currently works for all
other versions of Outlook).

So, my questions a

1. Is there a way to disable that dialog box from prompting the user?
2. Is there a way to detect which selection the user chose (either
choice #1, #2 or Cancel button)


I have tried setting the Cancel flag to true in some of the subsequent
events (Write and Send) but this seemed to produce an error (424 I
think?).

Any ideas?

Thanks!


Ads