【问题标题】:How to Access attachments from Notes mail?如何从 Notes 邮件中访问附件?
【发布时间】:2009-09-01 10:23:53
【问题描述】:

我想访问 Lotus Notes 中特定邮件的附件。 我正在使用 $File 获取附件名称。

但我想提取此附件并希望将其保存在用户指定的路径中。使用 C#。

【问题讨论】:

标签: c# lotus-notes


【解决方案1】:

它应该类似于下面的内容,但不确定我是否有正确的 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 )
    }
  }
}

【讨论】:

  • Carlos - 如果你编辑你的答案并将你的代码行缩进四个空格,它会在网上更具可读性。
猜你喜欢
  • 1970-01-01
  • 2014-07-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-04-10
  • 1970-01-01
相关资源
最近更新 更多