
Add attachments linked to elements of the outlook folder system
The special text path link is realy a nice way. That's exactly the mode I do
it at the moment. But the strings become long and longer
and...look%20verry%20crypticly%20for%20the%20users, you now.
Patrick Jox described a creation method over the EntryID and it seems to
work. The example adds the link of the current open item. So I hope by
retrieving any other EntryID/StoreID it will work as well.
.
.
set oAttachments = oMessage.Attachments
set oAttachedItem = oNS.GetItemFromID(item.EntryID,
item.parent.StoreID)
oAttachments.Add oAttachedItem, 4, , oMessage.Subject
.
.
Nowhere explained, but the return object of the GetItemFromID method will be
accepted as a valid address for the attached item!
Sue Mosher [MVP] schrieb in Nachricht ...
Quote:
>I think I played around with that for a while and couldn't come up with a
>way to insert a shortcut icon. You can, however, link to any Outlook item
in
>text:
> <Outlook://PublicFolders/All Public Folders/My Folder/~my Item>
>See http://www.slipstick.com/outlook/links.htm.
>--
>Sue Mosher
>Author of
> "Teach Yourself Microsoft Outlook 2000 Programming in 24 Hours"
> "Microsoft Outlook 2000 E-mail and Fax Guide"
>Outlook and Exchange solutions at http://www.slipstick.com
>> Is it possible to add attachments to an outlook element consisting of an
>> other outlook element (by reference) via the ...Attachments.Add method in
>> the same way it works manually via menu command 'insert' - 'element'
>> (option: insert as link). Manually inserted elements allways get the
>> AttachmentType 6 (olOle) and do not now the properties FileName,
PathName.
>> What is the linking property for those attachments and how can I
generate,
>> set or edit them within my VB-Scripts? Is there an interface to call the
>> 'insert element'-select window from program code simular to the
>> Addrressbook-Entry selector?
>> --
>> joerg hamann
>> webeco gmbh&co.kg
>> http://www.webeco.com