Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Handle Outlook new contact event

$
0
0
Thanks artnib, all working now.

I did realise that Add was a method and that it was wrong, but its always better to post some code and I just couldn't work out how to access the event. You gave me the crucial cast:
var contacts = (Outlook.Items)contactFolder.Items;
No amount of Googling pointed me to that.

Thanks also for the reminder about the default contacts folder, I guess I'll have to work out how to enumerate the other folders and add similar events which seems messy, unless you happen to know of an easier way to capture events for all new contacts.

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>