home | get Sue’s code | forums | share code | registration

More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

forum 09-Feb-2010 02:48

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

    Page [ 1 ]  
 Basic Outlook Printer Friendly Version
Working with Outlook items, folders, recipients; dealing with security; writing event handlers
Topic
How to get individual file details of attchment
Before sending the mail, How to get the details(Full path of the file and file size) of all the files in attachment. I am using the Outlook.mailitem object, it is giving filename correctly but it is not giving the null for pathname. And it is not giving the individual file details.

If anybody know the solution please reply.

Thanks in advance...

  29-Nov-2006  01:48
  29-Nov-2006  07:06   
There is no path except for linked files. An attached file is fully embedded in the Outlook item and so has no path.

Other individual file details, such as size, can be obtained only by saving the file out to the hard drive and using normal file methods to access it or by saving the unsent message and then using CDO 1.21 or Redemption to access the MAPI properties of its attachments. A copy of Outlook Spy or MFCMAPI will show you what's available in detail.
  29-Nov-2006  08:12   
Thanks for quick response,
So , dont we have any way to get the full file path ?
  29-Nov-2006  08:48   
Repeating: There is no full file path. Once the file is attached, it has no relationship to the original copy of the file. As far as Outlook is concerned, that file no longer exists.
  30-Nov-2006  01:19   
Thanks Sue
    Page [ 1 ]  
Post a new message to this topic.



name        email