PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
Open Attachment with Code
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
Open Attachment with Code
![]() |
Open Attachment with Code |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
> 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 |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

