Hi Sue,
The SaveAsFile method works for normail emails. However, when I try to
execute this method on inline attachments (namely, images), I get the
following error:
"Cannot save the attachment. Cannot add the attachment; no data source was
provided."
Could you shed some light on why this is so, and how can I overcome it? Many
thanks in advance.
"Sue Mosher [MVP-Outlook]" wrote:
A file attached to a message is contained in that message, in the Attachments
collection. Outlook neither knows nor cares about the original location of
the file, which may no longer even exist.
If you want to do some work on that file, you need to save it to the local
drive using the Attachment.SaveAsFile method. You can then modify the file,
remove the original attachment, and add the new version.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"sophie" wrote:
hi, all
I am working on attachment. I don't know how to get the location of a
sending email' attachment.
I want to do some operation before the email be sent.
is "Source Property" works? but when i use it like this
"objMailItem.attachments.Source" or "objMailItem.attachments.item(1).source",
it seems wrong.
pathName property seem work, but when i check the mail attachment item,
pathName is null.
i need help.
thanks.