PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Hooking up all the item event in one handler?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Hooking up all the item event in one handler?
![]() |
Hooking up all the item event in one handler? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. > > > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. > > > > > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

