Willy Wu
Guest
|
Hi Add-in Express Team,
We develop an add-in need to read content of attachment when user delete it.
So I use the ProcessAttachmentRemove event handler to access removed attachment.
I have try the following method to get content of attachment, but all is not work.
1. Use MAPIObject property of attachemnt object. (It occurs exception.)
2. Call SaveAsFile of attachemnt object to save a temp file, and read it. (It occurs exception while calling SaveAsFile method)
3. From MailItem of this removed attachment to access this attachment object. (This removed attachment do not exist, is has been removed)
Do you have any idea how to read attachment in ProcessAttachmentRemove event?
Many thanks. |
|
Andrei Smolin
Add-in Express team
Posts: 18791
Joined: 2006-05-11
|
|