我正在使用 C# 应用程序创建 Lotus Notes 日历项目。当我将日历项目保存在 NSF 文件的日历文件夹中时,它也会存储在草稿文件夹中。这是我的示例代码。
NotesDocument calDoc = NotesDatabase.CreateDocument();
calDoc.AppendItemValue("Form", "Appointment");
.
.
.//Assiging values to CalDoc
.
.
calDoc.ComputeWithForm(true, false);
calDoc.Save(false, false, true); //On execution of save statement it saves calender in
//drafts as well as in calendar folder
calDoc.PutInFolder(path, true);
我在保存 dalendar 文档时更改了所有 bool 值,但得到了相同的结果。非常感谢对此的任何帮助。 提前致谢。
马尤雷什
最佳答案
添加值为“D”的项目ExcludeFromView
。这可以防止约会显示在草稿文件夹中。
calDoc.ReplaceItemValue("ExcludeFromView", "D");
关于c# - Lotus Notes 客户端中的日历项目正在另存为草稿,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27798965/