Extract Contact Information From Outlook PST File 
Author Message
 Extract Contact Information From Outlook PST File

I'm having a bit of trouble finding how to open a PST file through VB.NET.
I am attempting to access contact data in the PST.  I can access the default
contact folder with the following code:

'****************** BEGIN CODE ************************
Dim objOutlook As New Outlook.Application()
Dim objNameSpace As Outlook.NameSpace
Dim objFolder As Outlook.MAPIFolder

objNameSpace = objOutlook.GetNamespace("MAPI")
objFolder =
objNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
'****************** ENDCODE ************************

My question is, how would I open a PST with a specified path (i.e. c:\My
Documents\outlook.pst) instead of using the default folder?

Thank you in advance for your help!
-Damien



Fri, 01 Apr 2005 23:42:38 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Extract data from an Outlook PST file?

2. Copy outlook.pst file on closing outlook

3. Extracting MS Outlook Contacts

4. VBscript for the Outlook Contact extract

5. Programatically export contacts folder to pst file

6. How to open a Contact folder in a PST file

7. Contact information in Outlook Appointments

8. From Word grab Outlook Contact information

9. access to remote outlook .pst file

10. Reading Outlook Archive file (*.pst) from CDrom.

11. Synchronizing 2 Outlook XP .PST files.

12. Reading Outlook Archive file (*.pst) from CDrom.

 

 
Powered by phpBB® Forum Software