问题描述
我试图解析基于文本的文件附件(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
的
76mel
这篇关于C#Outlook 2007中 - 如何直接访问附件内容从我的插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!