PC Review


Reply
Thread Tools Rate Thread

access files in public folders

 
 
maka
Guest
Posts: n/a
 
      21st Nov 2005
I've stored a xml-file in public folders. how can i access the file
programaticaly? What kind of OLItemType has the Item?

I tried to access the file as follows:
<NameSpace>.Folders["Public Folders"].Folders["the Folder"].Items[1]

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      21st Nov 2005
Such "freedocs" will be DocumentItem objects, with the file held in the DocumentItem.Attachments collection. You must use the Attachment.SaveAsFile method to save the attachment to the local drive before you can do anything with it, e.g.:

On Error Resume Next
Set objItem = myNameSpace.Folders("Public Folders").Folders("the Folder").Items(1)
objItem.Attachments(1).SaveAsFile "C:\" & objItem.Attachments(1).FileName
--
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


"maka" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I've stored a xml-file in public folders. how can i access the file
> programaticaly? What kind of OLItemType has the Item?
>
> I tried to access the file as follows:
> <NameSpace>.Folders["Public Folders"].Folders["the Folder"].Items[1]
>

 
Reply With Quote
 
maka
Guest
Posts: n/a
 
      21st Nov 2005
I don't now DocumentItem before but now it works fine. Thank you.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Public Folders - some files/folders need admin privileges Pravesh Windows Vista Administration 0 11th May 2009 08:51 PM
Import files to Public Folders =?Utf-8?B?TWFyY28=?= Microsoft Outlook Discussion 3 20th Jan 2006 01:38 PM
How to edit files in public folders =?Utf-8?B?Q3JhaWc=?= Microsoft Outlook Discussion 1 30th Nov 2005 03:21 AM
Editing files in Public Folders =?Utf-8?B?SmVmZg==?= Microsoft Outlook Discussion 2 18th Nov 2005 02:46 AM
Filters in public folders and ost files Donna Grant Microsoft Outlook 0 9th Dec 2003 09:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:31 PM.