Outlook object model and SyncObjects

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Petr Jarkovsky (pejasoft_at_volny.cz)
Date: 02/14/05

  • Next message: NAS: "Automatic messages"
    Date: Mon, 14 Feb 2005 22:44:55 +0100
    
    

    Hi,

    I have the problem with Outlook object model and SyncObjects.
    When I use something like OutApp.Session.SyncObjects.Item(1).Start, it works
    fine, but I need to catch events OnSyncStart, OnSyncEnd, OnProgress and
    OnError. So, I wrote my own class (in Delphi, inherited from TOleServer) for
    connecting to SyncObject and listening for these events.

    When I connect to any SyncObject (e.g. OutApp.Session.SyncObjects.Item(1)),
    the calling Start method of this object raise an exception with message:
    'Cann't get synchronization objects in Outlook application. This problem is
    obviously caused by the wrong configuration of Outlook application for
    offline mode.' (translated to English).

    I used some examples from MSDN and other web sites, I used even original
    example code from Borland, but I still get the same error.

    Can someone help me?

    Petr Jarkovsky


  • Next message: NAS: "Automatic messages"