View Single Post
  #20  
Old February 25th 06, 12:46 AM posted to microsoft.public.outlook.program_forms
SuperSlueth
external usenet poster
 
Posts: 24
Default Help for a novice

Sorry I don't follow

If I double click on the attachment it opens without saving it to disk
therefore why can't it just be opend with code


On Fri, 24 Feb 2006 18:24:12 -0500, "Sue Mosher [MVP-Outlook]"
wrote:

You can't open an attachment that way (and you'd know that if you looked in the object browser at the Attachment object; it has no Open method). You must save each attachment first to your hard drive and then open it, either with the appropriate automation for that type of file or with a Shell Execute type of command. See http://www.outlookcode.com/codedetail.aspx?id=1140 for a code sample.

You might also enjoy Eric's sample at http://msdn.microsoft.com/library/en...PictAttach.asp

Ads