PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Hooking up all the item event in one handler?

Reply

Hooking up all the item event in one handler?

 
Thread Tools Rate Thread
Old 06-08-2004, 01:06 PM   #1
Anthony Yio
Guest
 
Posts: n/a
Default Hooking up all the item event in one handler?


Hello,

Is it possible to catch all the events done on a pacticular store
(*.pst) in a handler? Like add new contact in the contact folder or update a
task in the task folder. I would like to store all the action done by the
user on the particular *.pst to a log file or text file.

Or, I need to set up the handlers for each of the items. By the way, what
are the event handler for detecting adding new, modify and deletion of task,
mail, calendar and the other item. Where should I look for in the Outlook
Object Model diagram.



thank you.




  Reply With Quote
Old 06-08-2004, 02:13 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Hooking up all the item event in one handler?

Yes, it's possible. But you'd need an event handler for every event you want
to trap and it would have to be replicated for every folder and so on you
want to monitor. That means setting up classes to handle each Inspector,
Explorer, Items collection and so on that you want to monitor for events.

You can see a VB 6 example of an Explorer wrapper and classes to handle
Explorer events in ItemsCB, which can be downloaded from the Resources page
at www.microeye.com and an example of an Inspector wrapper and classes to
handle Inspector and item events in that Inspector at
http://www.slovaktech.com/code_samp...nspectorWrapper

You'd need similar constructs for every type of collection whose events you
want to handle. You can see all the possible Outlook events in the Object
Browser.

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


"Anthony Yio" <ant_yio@hotmail.com> wrote in message
news:%23%23pth36eEHA.248@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> Is it possible to catch all the events done on a pacticular store
> (*.pst) in a handler? Like add new contact in the contact folder or update

a
> task in the task folder. I would like to store all the action done by the
> user on the particular *.pst to a log file or text file.
>
> Or, I need to set up the handlers for each of the items. By the way, what
> are the event handler for detecting adding new, modify and deletion of

task,
> mail, calendar and the other item. Where should I look for in the Outlook
> Object Model diagram.
>
>
>
> thank you.
>
>
>
>



  Reply With Quote
Old 07-08-2004, 03:05 AM   #3
Anthony Yio
Guest
 
Posts: n/a
Default Re: Hooking up all the item event in one handler?

thanks

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:uY%23P4g7eEHA.396@TK2MSFTNGP12.phx.gbl...
> Yes, it's possible. But you'd need an event handler for every event you

want
> to trap and it would have to be replicated for every folder and so on you
> want to monitor. That means setting up classes to handle each Inspector,
> Explorer, Items collection and so on that you want to monitor for events.
>
> You can see a VB 6 example of an Explorer wrapper and classes to handle
> Explorer events in ItemsCB, which can be downloaded from the Resources

page
> at www.microeye.com and an example of an Inspector wrapper and classes to
> handle Inspector and item events in that Inspector at
> http://www.slovaktech.com/code_samp...nspectorWrapper
>
> You'd need similar constructs for every type of collection whose events

you
> want to handle. You can see all the possible Outlook events in the Object
> Browser.
>
> --
> 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
>
>
> "Anthony Yio" <ant_yio@hotmail.com> wrote in message
> news:%23%23pth36eEHA.248@TK2MSFTNGP12.phx.gbl...
> > Hello,
> >
> > Is it possible to catch all the events done on a pacticular store
> > (*.pst) in a handler? Like add new contact in the contact folder or

update
> a
> > task in the task folder. I would like to store all the action done by

the
> > user on the particular *.pst to a log file or text file.
> >
> > Or, I need to set up the handlers for each of the items. By the way,

what
> > are the event handler for detecting adding new, modify and deletion of

> task,
> > mail, calendar and the other item. Where should I look for in the

Outlook
> > Object Model diagram.
> >
> >
> >
> > thank you.
> >
> >
> >
> >

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off