Board index » delphi » Using events in Outlook via automation.

Using events in Outlook via automation.


2004-06-25 09:58:28 PM
delphi166
Hi everyone.
I have a question, and hopefully one of you clever people has an answer.
I know from reading Microsoft newsgroups that you can write a event in
Outlook or should I rather say use events that Outlook has.
Now the question is: I have a Com Plugin for Outlook, but now have the need
to trap certain events as they occur in Outlook. I have used a 3rd party
component to get my code into Outlook "Office Add-In Express".
So how will I be able to get the events in a Com Add-in? If possible a
reference or some example code.
Thanks in advance and have a wonderfull weekend.
Regards,
Freddy Rademeyer
 
 

Re:Using events in Outlook via automation.

I am not at all familiar with "Office Add-In Express", but if you have a
pointer to the original Outlook COM object, you can either use the Delphi
wrappers (which do support events) or handle the events the standard COM way
(www.techvanguards.com/com/concepts/events.asp).
Babelfish COM addin on my site (url below) handles the events explicitly
(see uOutlookEvents.pas unit).
Dmitry Streblechenko (MVP)
www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Freddy Rademeyer" <XXXX@XXXXX.COM>writes
Quote
Hi everyone.

I have a question, and hopefully one of you clever people has an answer.

I know from reading Microsoft newsgroups that you can write a event in
Outlook or should I rather say use events that Outlook has.

Now the question is: I have a Com Plugin for Outlook, but now have the
need
to trap certain events as they occur in Outlook. I have used a 3rd party
component to get my code into Outlook "Office Add-In Express".

So how will I be able to get the events in a Com Add-in? If possible a
reference or some example code.

Thanks in advance and have a wonderfull weekend.

Regards,

Freddy Rademeyer


 

Re:Using events in Outlook via automation.

Quote
Now the question is: I have a Com Plugin for Outlook, but now have the
need
to trap certain events as they occur in Outlook. I have used a 3rd party
component to get my code into Outlook "Office Add-In Express".
Office Add-In express includes examples for doing all of this. Have you
read their manual or downloaded samples from their web site?
Oliver Townshend
 

Re:Using events in Outlook via automation.

Hi Oliver,
You know how it goes, got deadlines and try to do as fast as possible. Had a
quick lookover but didn't go into detail.
I will have a look at the examples.
Thanks
Freddy
"Oliver Townshend" <oliver_at_zip_com_au>writes
Quote
>Now the question is: I have a Com Plugin for Outlook, but now have the
need
>to trap certain events as they occur in Outlook. I have used a 3rd party
>component to get my code into Outlook "Office Add-In Express".

Office Add-In express includes examples for doing all of this. Have you
read their manual or downloaded samples from their web site?

Oliver Townshend