View Single Post
  #3  
Old September 18th 08, 03:45 PM posted to microsoft.public.outlook.program_addins
Stuart Parker
external usenet poster
 
Posts: 15
Default Application.Reminder Event

Cheers Ken.

Here's some background as to why I asked the question....

We use Richmond ServiceDesk, which can receive service requests via email,
and log them in the system.
We have a number of tasks which we perform for our managed clients on a
recurring basis.
We would like service requests to be logged in Richmond whenever one of
these tasks is due.

The idea being toyed with is this:

Install Outlook on our monitoring workstation, which is on 24/7. Keep
Outlook running.
Enter these tasks into a calendar and set recurrence and reminders on those
events.
When those events are due, outlook will fire a reminder.
When a reminder is triggered, invoke some custom code which interrogates the
item which the reminder is for.
Create a suitably formatted email message, and fire it off to the
ServiceDesk email address.
Ideally, the standard outlook reminder dialog will never be shown.

Stu

"Ken Slovak - [MVP - Outlook]" wrote in message
...
Application.Reminder is just an event that fires when a reminder comes
due. It has nothing to do with the reminders window and you can't cancel
that from that event.

You can access the Application.Reminders collection and handle the
Reminders.BeforeReminderShow() event, which has a Cancel argument that if
set to true will cancel display of the reminders window (and prevent the
reminder from firing so that Application.Reminder won't fire in that case.
The ReminderFire() event passes the Reminder object that fires the event,
but that happens after BeforeReminderShow(), so if you cancel the reminder
there you wouldn't get ReminderFire(). BeforeReminderShow() doesn't pass
you the actual reminder that would fire. For that you'd need to iterate
the Reminders collection and see which reminder would be firing.

--
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


"Stuart Parker" wrote in message
...
Hi, just a quick one....

If I hook into this event, will my code completely replace the default
reminder action (displaying that dialog box), or will the dialog box
appear after my code has completed?

If the latter, any way to stop the dialog appearing?

Cheers
Stu


Ads