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 » Outlook - Using Contacts
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Add Contacts to outlook using windows service



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 25th 06, 08:58 PM posted to microsoft.public.outlook.contacts
Anup
external usenet poster
 
Posts: 4
Default Add Contacts to outlook using windows service

I want to run a window service which collects the list of contacts from a
oracle database and updates to outlook contacts periodically.
I am using a Timer control to achieve the goal and the contacts are updated
to Outlook in timer__Elapsed event. when ever the code reaches the
Outlook.Application objOutlook = new ApplicationClass(); the timer is reset
and new timer_Elapsed event is generating, becuase the service is running in
a recursion.
Please let me know if we can call the outlook application from window
service, if yes how to resolve the above issue.

Thanks
Ads
  #2  
Old April 26th 06, 11:09 PM posted to microsoft.public.outlook.contacts
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Add Contacts to outlook using windows service

Outlook is not suitable to automate from a service. You can try using CDO 1.21 instead, but it is much more difficult to create a contact; see http://www.cdolive.com/cdo10.htm for some of the fields involved.

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

"Anup" wrote in message ...
I want to run a window service which collects the list of contacts from a
oracle database and updates to outlook contacts periodically.
I am using a Timer control to achieve the goal and the contacts are updated
to Outlook in timer__Elapsed event. when ever the code reaches the
Outlook.Application objOutlook = new ApplicationClass(); the timer is reset
and new timer_Elapsed event is generating, becuase the service is running in
a recursion.
Please let me know if we can call the outlook application from window
service, if yes how to resolve the above issue.

Thanks

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Not all of my contacts are syncing with my new windows mobile dev TC Outlook - Using Contacts 8 June 30th 06 10:55 PM
Windows Live Mail Desktop Beta & Windows Messenger Djc_74 Outlook Express 6 June 7th 06 09:03 PM
OS Version:Windows CE 5.00 -Contacts Chris Outlook - Using Contacts 1 April 19th 06 01:58 PM
Integrate with Shared Contacts under Windows and Linux GuyverXT9 Outlook - Using Contacts 1 March 16th 06 02:38 PM
adding mapi service to outlook 2003 for windows xp tringuyen99@yahoo.com Outlook - General Queries 3 January 24th 06 07:25 PM


All times are GMT +1. The time now is 01:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.