![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: 2007, bcm, events |
|
|
|
Thread Tools | Display Modes |
|
#11
|
|||
|
|||
|
Sue Mosher [MVP-Outlook] skrev:
Sorry, I don't write C# code, so I can't tell you why it's not working. From my limited ability to read C#, no problem jumps out at me. Just to test that my eventhandlers worked at all I tried to attatch to one of the default folders of Outlook like you do. ------------------------ Outlook.Items olItems; olItems = (Items)this.olNameSpace.GetDefaultFolder(OlDefault Folders.olFolderContacts).Items; olItems.ItemAdd += new ItemsEvents_ItemAddEventHandler(olItems_ItemAdd); ------------------------ And this works just fine. Unfortunately the BCM folders aren't default folders of Outlook, so I cannot do what I want with GetDefaultFolder(). I've tried loads of other appreaches to attatching eventhandlers to the BCM folders but with no luck so far. If anyone has a working example, it would be much appreciated. /Aidal |
| Ads |
|
#12
|
|||
|
|||
|
How you get the folder shouldn't affect how the event handler works, as long as the event-firing object (olItems) is declared at the class level.
Maybe it's a limitation of the BCM data store that it doesn't fire normal Items events. You could ask about that on the microsoft.public.outlook.bcm group. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Aidal" wrote in message ... Sue Mosher [MVP-Outlook] skrev: Sorry, I don't write C# code, so I can't tell you why it's not working. From my limited ability to read C#, no problem jumps out at me. Just to test that my eventhandlers worked at all I tried to attatch to one of the default folders of Outlook like you do. ------------------------ Outlook.Items olItems; olItems = (Items)this.olNameSpace.GetDefaultFolder(OlDefault Folders.olFolderContacts).Items; olItems.ItemAdd += new ItemsEvents_ItemAddEventHandler(olItems_ItemAdd); ------------------------ And this works just fine. Unfortunately the BCM folders aren't default folders of Outlook, so I cannot do what I want with GetDefaultFolder(). I've tried loads of other appreaches to attatching eventhandlers to the BCM folders but with no luck so far. If anyone has a working example, it would be much appreciated. /Aidal |
|
#13
|
|||
|
|||
|
Sue Mosher [MVP-Outlook] skrev:
How you get the folder shouldn't affect how the event handler works, as long as the event-firing object (olItems) is declared at the class level. Maybe it's a limitation of the BCM data store that it doesn't fire normal Items events. You could ask about that on the microsoft.public.outlook.bcm group. Just a thought brought to me by somone else... Could CDO be used for somthing usefull on this matter? I have not done anything with CDO yet, but if it could solve my problem I'm willing to give it a shot. Does anyone know? /Aidal |
|
#14
|
|||
|
|||
|
CDO has no event handling, so it's not relevant.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Aidal" wrote in message ... Sue Mosher [MVP-Outlook] skrev: How you get the folder shouldn't affect how the event handler works, as long as the event-firing object (olItems) is declared at the class level. Maybe it's a limitation of the BCM data store that it doesn't fire normal Items events. You could ask about that on the microsoft.public.outlook.bcm group. Just a thought brought to me by somone else... Could CDO be used for somthing usefull on this matter? I have not done anything with CDO yet, but if it could solve my problem I'm willing to give it a shot. Does anyone know? /Aidal |
|
#15
|
|||
|
|||
|
Sue Mosher [MVP-Outlook] skrev:
CDO has no event handling, so it's not relevant. Ok, thanks for all your replies Sue, I appreciate it ![]() I'm gonna wait and see what happens for a bit I think. I still very much need to know how to listen to BCM events though, but it doesn't seem like anyone have really cracked that one yet. /Aidal |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BCM 2007 Events and EventHandlers | Aidal | Outlook - General Queries | 1 | December 6th 06 01:15 PM |
| Installed Office 2007 Pro, BCM is not there, how to get module? | blewis999 | Outlook - Using Contacts | 0 | November 23rd 06 03:29 AM |
| BCM crashed - reinstalled - now I can't see BCM in Oulook | CGINUSA | Outlook - Installation | 0 | July 18th 06 10:06 AM |
| Migrating BCM files from 2003 to 2007 | JimB | Outlook - Installation | 1 | July 16th 06 02:18 PM |
| Outlook 2007 w/BCM: Cannot Reinstall | RDU | Outlook - Installation | 0 | July 2nd 06 04:05 PM |