none
Create a Personal Storage File using ASP.Net RRS feed

  • Question

  • I have Tasks,Mails,communication in asp.net2008 and C#.net, target framework is 3.5 which is similar like Microsoft Outlook and it is being stored in a collection class. Now I want to export as .Pst file(i.e. Outlook Personal Storage File). I want to use it in a remote machine where Outlook is not installed. Once the user clicks on the selected task and select PST it would create a PST file and the user can download and import in their outlook.
    It is possible? If so then how?

    Can you provide with some link or sample code.

    I need it urgently.

    Thanks in advance.

     
    Monday, August 6, 2012 6:41 AM

Answers

  • If Outlook is not installed, you can install the standalone version of MAPI and open the PST file using Extended MAPI (C++ or Delphi) or Redemption (RDOSession.LogonPstStore). Note that the standalone version of MAPI only supports old (ANSI) PST stores.

    Otherwise you will need to parse the PST files in your code, whcih is nto not trivial.

    Why can't you install Outlook on the machine where the PST files need to be accessed?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Monday, August 6, 2012 2:44 PM
  • No, installing Outlok is the only way to get programmatic access (read and/or write) to the PST files.

    The PST file format is documented, but it is not for the fainthearted: see [MS-PST].pdf at http://www.microsoft.com/en-us/download/details.aspx?id=14565


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Tuesday, August 7, 2012 6:50 AM

All replies

  • If Outlook is not installed, you can install the standalone version of MAPI and open the PST file using Extended MAPI (C++ or Delphi) or Redemption (RDOSession.LogonPstStore). Note that the standalone version of MAPI only supports old (ANSI) PST stores.

    Otherwise you will need to parse the PST files in your code, whcih is nto not trivial.

    Why can't you install Outlook on the machine where the PST files need to be accessed?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Monday, August 6, 2012 2:44 PM
  • Thanks for the reply but I want the reverse process. I want to create a pst file without the Outlook COM component installed in the server which would export the task,messages etc into a pst which the user would download and integrate into their local outlook.

    I searched and found everyone using the Microsoft.Office.Interop.Outlook which I donot want since it would invoke the outlook client but in the server there is not outlook and the task and messages are created by my application.

    Is there any link or code which I can refer in ASP.Net and C#.net2008.

    Thanks in advance.

    Tuesday, August 7, 2012 6:31 AM
  • Thanks for your response but in the server I cannot install outlook. Do Windows provide any such dll other than  Microsoft.Office.Interop.Outlook which I can refer other assist me in developing the pst from my customize task and message etc. As the input would be in a Collection Class like simple List, ArrayList etc so I need to extract these data and write a pst file so how to go about?I'm using ASP.NET2008 with C#.Net2008 with target framework 3.5.

    Thanks in advance as I need it urgently.

    Tuesday, August 7, 2012 6:38 AM
  • No, installing Outlok is the only way to get programmatic access (read and/or write) to the PST files.

    The PST file format is documented, but it is not for the fainthearted: see [MS-PST].pdf at http://www.microsoft.com/en-us/download/details.aspx?id=14565


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Tuesday, August 7, 2012 6:50 AM