我们如何使用Redemption.dll(版本:5.6.0.3644)提取Outlook文档?(How can we extract Outlook documents using Redemptio

编程入门 行业动态 更新时间:2024-10-10 14:23:06
我们如何使用Redemption.dll(版本:5.6.0.3644)提取Outlook文档?(How can we extract Outlook documents using Redemption.dll (version: 5.6.0.3644 )?)

我使用的是Redemption.dll(版本:5.6.0.3644)。 我想使用'IRDODocumentItem'从Outlook文件夹中提取文档。 我怎样才能做到这一点?

I am using the Redemption.dll (version: 5.6.0.3644). I want to use the ‘IRDODocumentItem’ to extract documents from Outlook folders. How can I achieve that?

最满意答案

RDODocumentItem对象(派生自通用RDOMail obejct)表示消息类为IPM.Document.xyz的消息。 此类消息只有一个附件。

您是否尝试从常规邮件中提取补丁? 您可以使用RDOMail.Attachments集合和RDOAttachment.SaveAsFile方法。

您需要使用哪些RDODocumentItem特定方法?

No, I am not extracting attachment from the mail. I have a simple Folder in outlook that contains some word and excel documents. I did some research and extracted them like this

if (objItem is RDODocumentItem) { RDOAttachments rdoAttachments = null; RDOAttachment rdoAttachment = null; try { rdoAttachments = ((RDODocumentItem)objItem).Attachments; if (rdoAttachments.Count > 0) { RDOAttachment attachment = ((RDODocumentItem)objItem).Attachments[1]; attachment.SaveAsFile(path); NAR(attachment); rdoAttachment = rdoAttachments[1]; rdoAttachment.SaveAsFile(path); } } finally { NAR(rdoAttachment); NAR(rdoAttachments); } }

Is it the correct way to extract document ?

更多推荐

本文发布于:2023-08-06 18:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1453600.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   版本   文档   dll   Redemption

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!