帮你看一下
Attachment 对象有一个 Type 属性
Type 属性返回 OlAttachmentType 常量,该常量代表指定对象的类型。只读。OlAttachmentType 可为以下 OlAttachmentType 常量之一。
olByReference
olByValue
olEmbeddeditem
olOLE olEmbeddeditem是否就是内嵌资源附件呢? 自己试一下吧
Attachment 对象有一个 Type 属性
Type 属性返回 OlAttachmentType 常量,该常量代表指定对象的类型。只读。OlAttachmentType 可为以下 OlAttachmentType 常量之一。
olByReference
olByValue
olEmbeddeditem
olOLE olEmbeddeditem是否就是内嵌资源附件呢? 自己试一下吧
private Outlook.OlAttachmentType olType;
然后在:
attach[j].SaveAsFile(tagPath); //保存 attach[j] 附件到硬盘.
下面加了:
olType = attach[j].Type;
后,测试每次得到olType的值都是 olByValue .但是我在正文里面有添加好几张图片得到同样的值? 不解,请大家再多关注一下.
我直接插入的图片,在附件另存为菜单中并没有出现
也就是附件对象不包括直接插入的图片