问题
I have a little VBA macro to save attachments in Outlook using the following snippet
For Each objAtt In objSourceItem.Attachments
strFile = strPath & objAtt.FileName
objAtt.SaveAsFile strFile
Next
This works for all types of attachments except for ChemDraw attachments. I get an error saying that "Outlook cannot perform this action on this type of attachment" I am not sure if this specific to ChemDraw, but I maybe it has to do with file extension and Outlook not recognizing the file format. Anyway, this http://www.cambridgesoft.com/services/documentation/sdk/chemdraw/cdx/General.htm has info on ChemDraw type files. Any help is appreciated. Thanks!
回答1:
If this is an embedded OLE object in an RTF message, Outlook will not be able to extract the actual file data from the attachment (which is an OLE storage blob - IStorage).
来源:https://stackoverflow.com/questions/17706422/why-is-outlook-unable-to-save-a-particular-type-of-attachments