如何用c#添加Lotus Notes待办事项条目

本文关键字:Notes 何用 添加 Lotus | 更新日期: 2023-09-27 18:02:48

我正在创建一个小应用程序,用户可以从中向lotus notes发送邮件、约会和待办事项。我能够找到一种方法来发送约会到lotus notes,使用以下方法,我从网上找到的。

Domino.NotesSession LNSession = new Domino.NotesSession();
Domino.NotesDatabase LNDatabase;
Domino.NotesDocument LNDocument;
try
{
   LNSession.Initialize("password");
   LNDatabase = LNSession.GetDatabase("my lotus mail server", @"location'dbfilename", false);
   LNDocument = LNDatabase.CreateDocument();
   LNDocument.ReplaceItemValue("Form", "Appointment");
   ...
}

现在我想发送待办事项,但无法在网上找到样本。LNDocument。ReplaceItemValue("形式","约会");我认为我只需要需要替换的值(如"Appointment"用于为待办事项发送日历项?)以及Lotus Notes待办事项的属性。

谢谢

如何用c#添加Lotus Notes待办事项条目

在ToDo的文档属性中,您可以看到表单是"Task"。文件/待办事项上的所有项目都可以在那里进行调查。添加表单项后,运行ComputeWithForm,这将设置一些属性。

ComputeWithForm 通过执行默认值、转换和验证公式(如果在文档表单中定义了任何公式)来验证文档。语法:flag = notesDocument。