PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Open Attachment with Code

Reply

Open Attachment with Code

 
Thread Tools Rate Thread
Old 01-07-2003, 04:13 PM   #1
Tobias Ortmann
Guest
 
Posts: n/a
Default Open Attachment with Code


Hey all,

is it possible to open an attachment with code? In my custom form is always
a msg-file attached an i want to display that item by clicking a command-
button. I can't see any possiblities to handle this with oom but possibly
this can be done with cdo???

I have to open the attached item not a copy of the item from the file
system.

thanks in advance


cu
tobias
  Reply With Quote
Old 01-07-2003, 05:11 PM   #2
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Open Attachment with Code

Try saving it to the file system, then opening it with the Namespace.CreateItemFromTemplate method.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm


"Tobias Ortmann" <tortmann@spam.uni-muenster.de> wrote in message news:Xns93ABB972227F0tortmannunimuensterd@128.176.188.118...
> Hey all,
>
> is it possible to open an attachment with code? In my custom form is always
> a msg-file attached an i want to display that item by clicking a command-
> button. I can't see any possiblities to handle this with oom but possibly
> this can be done with cdo???
>
> I have to open the attached item not a copy of the item from the file
> system.
>
> thanks in advance
>
>
> cu
> tobias

  Reply With Quote
Old 01-07-2003, 08:36 PM   #3
Tobias Ortmann
Guest
 
Posts: n/a
Default Re: Open Attachment with Code

> Try saving it to the file system, then opening it with the
> Namespace.CreateItemFromTemplate method.



If I open the attachment with a double click, modify the body and then
close the attachment the changes are permanently stored in the attachment.
If i save it to the file system first, i only can modify the copy in the
file system, not the original attachment.
So i need a method to open an attachment in the same way the double click
opens it.




cu
tobias
  Reply With Quote
Old 01-07-2003, 09:31 PM   #4
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Open Attachment with Code

I believe you'll have to go to Redemption or Extended MAPI for that. Outlook and CDO can't do it.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm


"Tobias Ortmann" <tortmann@spam.uni-muenster.de> wrote in message news:Xns93ABE6092D5Ctortmannunimuensterd@128.176.188.118...
> > Try saving it to the file system, then opening it with the
> > Namespace.CreateItemFromTemplate method.

>
>
> If I open the attachment with a double click, modify the body and then
> close the attachment the changes are permanently stored in the attachment.
> If i save it to the file system first, i only can modify the copy in the
> file system, not the original attachment.
> So i need a method to open an attachment in the same way the double click
> opens it.
>
>
>
>
> cu
> tobias

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off