![]() |
Access to Outlook data files
We archive old email in PST files to get them off exchange. if a user has
several mailbox's open it's no problem to get access to their folders via GetSharedDefaultFolder, however if a user has an outlook data file open (PST) i can't see a way to get access to it via GetSharedDefaultFolder, i can't resolve the name. should this be possible? Thanks, Steve |
Access to Outlook data files
No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only ..pst files on local drives, not network access.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Steve" wrote in message ... We archive old email in PST files to get them off exchange. if a user has several mailbox's open it's no problem to get access to their folders via GetSharedDefaultFolder, however if a user has an outlook data file open (PST) i can't see a way to get access to it via GetSharedDefaultFolder, i can't resolve the name. should this be possible? Thanks, Steve |
Access to Outlook data files
Could you show me how to use Namespace.AddStore to open .pst file? -- Developer "Sue Mosher [MVP-Outlook]" wrote: No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only ..pst files on local drives, not network access. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Steve" wrote in message ... We archive old email in PST files to get them off exchange. if a user has several mailbox's open it's no problem to get access to their folders via GetSharedDefaultFolder, however if a user has an outlook data file open (PST) i can't see a way to get access to it via GetSharedDefaultFolder, i can't resolve the name. should this be possible? Thanks, Steve |
Access to Outlook data files
See http://www.outlookcode.com/codedetail.aspx?id=84 for a code sample. Note that AddStore would be used to open a .pst file that the user is not already using. For one already in use in the current profile, you'd access it as you would any other store or non-default folders -- through the Namespace.Folders collection.
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "Paul Wu" wrote in message ... Could you show me how to use Namespace.AddStore to open .pst file? -- Developer "Sue Mosher [MVP-Outlook]" wrote: No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only ...pst files on local drives, not network access. "Steve" wrote in message ... We archive old email in PST files to get them off exchange. if a user has several mailbox's open it's no problem to get access to their folders via GetSharedDefaultFolder, however if a user has an outlook data file open (PST) i can't see a way to get access to it via GetSharedDefaultFolder, i can't resolve the name. should this be possible? Thanks, Steve |
All times are GMT +1. The time now is 06:53 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com