View Single Post
  #1  
Old August 31st 07, 04:18 PM posted to microsoft.public.outlook.program_forms
Bodo
external usenet poster
 
Posts: 13
Default Outlook 2002 SP3:Problem with adding attachment to custom contact

Hello,
I use the following vbScript-code to add an attachment (image type) to a
custom
contact item:

Set myAttachments = Item.Attachments
If myAttachments.count = 0 then
myAttachments.add strPath, olEmbeddeditem , 1, "picture"
end if

I assume that the code above adds the file as an embedded attachment to the
item, not just as a link to the file location.

However, when I open the item, the file is addedd as a link.

When I try to add a file to the contact item from menu Insert...File and
choose attachment in file open dialog the file is acctually add as an
embedded file.

How can I do that programmatically?



--
Thanks in advance
Bodo
Ads