A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , ,

BCM 2007 events





 
 
Thread Tools Display Modes
  #11  
Old December 15th 06, 08:08 AM posted to microsoft.public.outlook.program_addins
Aidal
external usenet poster
 
Posts: 9
Default BCM 2007 events

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  
Old December 15th 06, 12:23 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,610
Default BCM 2007 events

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  
Old December 20th 06, 08:08 AM posted to microsoft.public.outlook.program_addins
Aidal
external usenet poster
 
Posts: 9
Default BCM 2007 events

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  
Old December 20th 06, 12:34 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,610
Default BCM 2007 events

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  
Old December 21st 06, 07:44 AM posted to microsoft.public.outlook.program_addins
Aidal
external usenet poster
 
Posts: 9
Default BCM 2007 events

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

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

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


All times are GMT +1. The time now is 03:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Play Sport - Refinance - Car Insurance - Free Ringtones - Free Credit Report