我们如何使用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 ?
更多推荐
发布评论