Why is Outlook Unable to Save a Particular Type of Attachments?

我的未来我决定 提交于 2019-12-24 16:16:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!