outlook appointments RRS feed

  • Question

  • I want to automate outlook with 2005 like add /delete appointments. How i can manage it for all outlook versions like Outlook 2002, 2003, 2007???
    Tuesday, August 12, 2008 12:50 PM


All replies

  • Hi!
    You can't do it for all. Get the version installed on the user machine, and, depending on this, use the appropriate code.



    Tuesday, August 12, 2008 1:45 PM
  • Hi M Imran Shafiq


    I believe that it’s a Visual Studio Tools for Office’s problem, and I’m going to move it to VSTO Forum. See if specialists there can help.



    Best wishes,

    Jun Wang


    Thursday, August 14, 2008 3:37 AM
  • Hello,


    When developing an application target multiple Office versions, it is recommend to write against the lowest version Office's PIA. As your demand, you need reference the Office XP PIAs. You can download it here:


    After referencing the Office XP PIAs, you can use new operator to create a new Outlook application or Marshal.GetActiveObject("Outlook.Application") to get the active running Outlook application.


    To create an appointment, please refer the following msdn link:

    To delete an appointment, you just need to get that appointment's object, and call its Delete() method.






    Thursday, August 14, 2008 4:20 AM