none
How to start outlook in non ui mode RRS feed

  • Question

  • Hi All

    As per the requirement we need to create MS Outlook Add-In, which can fetch and save Outlook calendar schedule information from MS Outlook at some specified time interval; for this we have implemented the OnConnection in our Add-In dll; but we require to start MS Outlook.exe programmatically in non UI mode at some specified time interval.

    Please suggest how we can start OUtlook.exe in non UI mode.

    Thank You

    Monday, February 20, 2012 2:16 AM

Answers

  • Thank you for the response.

    >>Please suggest how we can start OUtlook.exe in non UI mode.

    Our requirement is to run the Outlook.exe in non UI mode; we have tried the following code and created theOutlook::_ApplicationPtr; code is as follows:

    CoInitialize(NULL);

    Outlook::_ApplicationPtr iAppPtr;
    iAppPtr.CreateInstance(__uuidof(Outlook::_Application));

    Thank You


    Tuesday, February 21, 2012 2:29 AM

All replies

  • try like this:

    Dim olApp As Object
    Set olApp = CreateObject("Outlook.Application")
        olApp.Visible = False
    
    'if nessesery
    Dim oSession as Object
    Set oSession =  CreateObject("MAPI.Session")
        oSession.Logon newSession:=False


    Oskar Shon, Office System MVP

    Press if Helpful; Answer when a problem solved

    Monday, February 20, 2012 10:48 AM
  • Thank you for the response.

    >>Please suggest how we can start OUtlook.exe in non UI mode.

    Our requirement is to run the Outlook.exe in non UI mode; we have tried the following code and created theOutlook::_ApplicationPtr; code is as follows:

    CoInitialize(NULL);

    Outlook::_ApplicationPtr iAppPtr;
    iAppPtr.CreateInstance(__uuidof(Outlook::_Application));

    Thank You


    Tuesday, February 21, 2012 2:29 AM