Outlook Calendar File Format?

Posted on 2006-05-23
Last Modified: 2008-03-17
We have a web-based calendar for our school. However, the students use outlook calendar. We want to have their calendars to update the info in this web-based calendar automatically. How can we do this?

 The only way I am thinking off right now is to build a software to run silently in each students' computer. This software will extract the data from the web-based calendar and import to outlook. I can easily build the data extraction mechanism. However, I am not sure how to program a software to import data into outlook calendar in the background. Can someone advise me how to do this? Where can I get info about the file format of Outlook calendar?

Thank you.
Question by:quanghoc
    LVL 32

    Expert Comment

    When run in stand-alone mode (i.e. no Exchange server) Outlook stores its data in a .pst file.  While I think there is information around about how to decipher pst files, there is an easier way, in my opinion at least.

    Outlook provides a rather robust API that permits reading and writing of data in the pst file including the calendar.  It's implemented as a COM object so you can access it from and programming environment that supports COM which these days is just about anything.

    First of all, here is a great online resouce with lots of Outlook programming information:

    Microsoft has information about the interface here.  (Note that it say VBA Language but this is applicable to any programming language.):

    LVL 1

    Author Comment

    Thanks jhance,
     Somehow I couldn't find a specific sample code for adding new event in calendar. Do you know of anything like this? I haven't been using VBA for a long time so a sample code would help much more.
    LVL 32

    Expert Comment

    LVL 32

    Accepted Solution

    Sorry, wrong link.  See:

    for a VB example of adding an appt in Outlook.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    A short article about problems I had with the new location API and permissions in Marshmallow
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now