【问题标题】:Attachment displays twice on notes document附件在笔记文档上显示两次
【发布时间】:2019-03-01 03:06:26
【问题描述】:

我有一个 lotusscript 函数,它可以在富文本文件中创建包含附件的新文档。

    ...
    Dim docProcess As NotesDocument
    Set docProcess = dbCurrent.createDocument
    docProcess.form = "result"
    ...
    'Attach file
    Dim rtfFile As NotesRichTextItem
    Set rtfFile = docProcess.Createrichtextitem("xmlFile")
    Call rtfFile.Embedobject(EMBED_ATTACHMENT, "", filePath + fileName, "file")

    Call docProcess.save(False, False)

我的表单设计是这样的

$V2AttachmentOptions 为显示计算,值为“0” xmlFile 是一个(可编辑的)富文本字段

但是,在 Notes 客户端中打开文档时,它看起来像这样:

我们正在使用 Notes V9.01 FP8

如何隐藏行下方显示的附件?

我找到了this 技术说明,但这不相关,因为我没有在编辑模式下打开文档(它是由代理在服务器上创建的)。

【问题讨论】:

    标签: lotus-notes


    【解决方案1】:

    你试过不包括第四个参数吗? Designer 手册说它用于 OLE/2 对象,而不是附件。技术说明中的示例与此相矛盾,但另一方面,我为没有第四个参数的附件创建了许多脚本,并且始终按预期工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-21
      相关资源
      最近更新 更多