Add attachments linked to elements of the outlook folder system 
Author Message
 Add attachments linked to elements of the outlook folder system

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.*-*-*.com/



Sun, 08 Sep 2002 03:00:00 GMT  
 Add attachments linked to elements of the outlook folder system
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


Quote:
> 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



Tue, 10 Sep 2002 03:00:00 GMT  
 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



Tue, 10 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How can I save on FileSystem an Outlook-Element attachment

2. Is it possible to save a olImbeddedItem attachment directly in a Outlook Folder

3. Save Attachment to Folder xxxx Within Outlook

4. Save .msg attachment to Outlook folder

5. Copy msg attachment to Outlook Folder

6. Working with Outlook Attachments in linked Access Tables

7. Working with Outlook Attachments in linked Access Tables

8. Add attachment from item in folder to MailItem

9. Adding multiple attachments from File System using VBScript

10. Outlook MailItem.Attachments.Add method, Position Parameter

11. Adding an OLE attachment to an Outlook item

12. Adding attachment in Outlook: Can this be done?

 

 
Powered by phpBB® Forum Software