Update Outlook reminder dialog programatically

J

j

Hi all,


Is it possible to update Oultook's reminder dialog programmtically??

Scenario:

mail_x resides in Oultook's inbox folder and has reminderSet= true,
on reminder time the Reminder dialog appear with mail_x subject, at
this moment no action was made. My addIn deleted this mail from Inbox
folder, however mail_x still appears in Reminder dialog and will be
dissapear after Outlook will refresh it, but i want to refresh it
programatically (i need to remove it from dialog).


Any solutions will be appreciated.

TNX,.
 
K

Ken Slovak - [MVP - Outlook]

The reminders dialog is not accessible to code. It will update when it
updates. You can remove an item from the Reminders collection, but I doubt
that will refresh the reminders dialog, it usually updates once a minute.
 
J

j

Thanks for replay,

Since refresh is impossible, how can remove an item from Reminders??
Do u have some sample or snippets.

Thanks in advance
 
K

Ken Slovak - [MVP - Outlook]

Reminders.Remove(index) or if you have a handle to the Reminder item then
Reminder.Dismiss if you want to dismiss the reminder. Again though, the
window may not refresh for up to 1 minute.

There's a code snippet for Reminder.Dismiss in the Object Browser help for
the Dismiss method.
 
J

j

Thanks,


I can't use Reminders.Remove(index) cause i don't know the index, but
i have an EntryId of item that i need to Dismiss, so

in this case i should iterate over the Reminders collection in for
loop, find the reqires reminder and call to Dismiss?, or there are
another solution??


Thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

Something like that is probably what I'd use if I was using the Outlook
object model for that.
 
J

j

OK, thank u,


i can't solve another issue concerning reminders.

I want to trap event when user click on Dismiss in OL rminder's
dialog,

Remiders has event ReminderRemove, but the event handler is empty of
arguments, so i don't no which item was removed (dismissed).
Foe example evetn Snooze or ReminderChange has ReminderObject object
from which i can take out the entryID .


How can i solve my problem???


Tnx inadvance
 
K

Ken Slovak - [MVP - Outlook]

You can't really unless you use a workaround like listing all items in the
Reminders folder and when you get that event you check what's there with
what's in your list and know that way. It's the same problem with the
ItemRemove event for an Items collection, you get the event but no
information on what was removed. That's a problem with the underlying MAPI
events that are passed through to Outlook, so not much you can do about
that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top