【发布时间】:2009-09-01 10:23:53
【问题描述】:
我想访问 Lotus Notes 中特定邮件的附件。 我正在使用 $File 获取附件名称。
但我想提取此附件并希望将其保存在用户指定的路径中。使用 C#。
【问题讨论】:
标签: c# lotus-notes
我想访问 Lotus Notes 中特定邮件的附件。 我正在使用 $File 获取附件名称。
但我想提取此附件并希望将其保存在用户指定的路径中。使用 C#。
【问题讨论】:
标签: c# lotus-notes
它应该类似于下面的内容,但不确定我是否有正确的 c# 语法。
NotesRichTextItem rtitem = doc.GetFirstItem("name")
if ( rtitem.Type = 1) {
foreach (NotesEmbeddedObject o in rtitem.EmbeddedObjects) {
if ( o.Type = 1454 ) {
o.ExtractFile( "c:\samples\" & o.Source )
}
}
}
【讨论】: