![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
hello
I'm using VSTO SE Outlook add in for Outlook 2007 using vb.net.I need to get attachment details - MIME content type,content subtype & the file data itself. I used redemption to get content type,subtype using field value &H370E001E of safemailItem attachment.But was not able to get attachment file data. Is there any way to get attachment file data without saving the file & then getting its data? thanks |
#2
|
|||
|
|||
![]()
The actual binary data for the attachment is stored in PR_ATTACH_DATA_BIN.
That property is a PT_BINARY. However, that may be encoded in some way so the usual method is to save out the attachment to the file system and work with it from there. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "sd" wrote in message ... hello I'm using VSTO SE Outlook add in for Outlook 2007 using vb.net.I need to get attachment details - MIME content type,content subtype & the file data itself. I used redemption to get content type,subtype using field value &H370E001E of safemailItem attachment.But was not able to get attachment file data. Is there any way to get attachment file data without saving the file & then getting its data? thanks |
#3
|
|||
|
|||
![]()
Thanks Ken!
I've still one problem -I was able to get content type & subtype for existing mail attachment.But Is there any way to find out the content type & subtype of outgoing mail attachment.I need to retrive this info. from outgoing mail & send it. thanks again for reply |
#4
|
|||
|
|||
![]()
Sure. Just trap the item.Send() event and in that event handler first save
the item being sent, then access its Attachments collection and proceed the same way. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "sd" wrote in message ... Thanks Ken! I've still one problem -I was able to get content type & subtype for existing mail attachment.But Is there any way to find out the content type & subtype of outgoing mail attachment.I need to retrive this info. from outgoing mail & send it. thanks again for reply |
#5
|
|||
|
|||
![]()
Thanks Ken
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I convert an Outlook Data file to a text file? | Peggy | Outlook - Using Contacts | 4 | September 3rd 08 06:44 PM |
PRF file problem wiht personal folders data file password protecte | Groupex1 | Outlook - Installation | 0 | November 1st 07 08:01 PM |
Outlook file translators stuck on a default data file or not worki | Charles griffiths | Outlook - Using Contacts | 2 | April 23rd 07 11:50 AM |
Can I replace the attachment file when double chick attachment? | [email protected] | Outlook - General Queries | 3 | August 3rd 06 04:10 PM |
pst file option missing under new outlook data file dialog | UncleBuckle | Outlook - Installation | 2 | February 24th 06 11:49 PM |