Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Contacts / April 2006

Tip: Looking for answers? Try searching our database.

Add Contacts to outlook using windows service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anup - 25 Apr 2006 20:58 GMT
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
Sue Mosher [MVP-Outlook] - 26 Apr 2006 23:09 GMT
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.

Signature

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
 

>I want to run a window service which collects the list of contacts from a
> oracle database and updates to outlook contacts periodically.
[quoted text clipped - 7 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.