C#Outlook 2007中 - 如何直接访问附件内容从我的插件? [英] C# Outlook 2007 - How do I access attachment contents directly from my addin?

查看:326
本文介绍了C#Outlook 2007中 - 如何直接访问附件内容从我的插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图解析基于文本的文件附件(TXT,DOC,等等)。不过,我似乎无法得到的二进制信息本身。我能得到的文件名,我可以将文件保存到一些临时文件夹,并从那里打开它,但似乎乱了。

I'm trying to parse text-based file attachments (txt, doc, etc...). However, I can't seem to get to the binary information itself. I can get the filename and I can save the file out to some temporary folder and open it from there, but that seems messy.

有什么办法来访问内容不保存它,阅读它,然后删除它,或者我只是追我的尾附件的?

Is there any way to access the content of an attachment without saving it, reading it, then deleting it or am I just chasing my tail?

推荐答案

赎回会帮你在这里,SafeMailItem.Attachments收集有有一个属性AsText
检查

Redemption will help you here, SafeMailItem.Attachments collection has Attachment object that has a property "AsText" check out

http://www.dimastr.com/redemption/

76mel

这篇关于C#Outlook 2007中 - 如何直接访问附件内容从我的插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆