【发布时间】:2014-04-02 06:43:25
【问题描述】:
我需要做的是创建一个热点链接并将其附加到富文本中。我已经通过以下链接找到了实现此功能的方法:
http://ozinisle.blogspot.com/2010/11/lotusscript-code-to-append-hotspot-to.html
现在我希望创建的热点位于现有富文本字段的内部或中间。如果您检查了它为热点创建带有正文富文本的文档的链接,我无法识别将其插入尝试使用 nav 和 range 但它只是获取纯文本,我也想获取热点链接。谢谢。
这是一个示例代码(我们在其中附加了富文本,但我想将其插入其中 - 我找到了一种方法,但使用 DXL 也会令人困惑)是否有一种简单的方法可以解决这个问题:
If rtnav.FindFirstString("<Reply: From>", RT_FIND_CASEINSENSITIVE) Then
' Get the <Reply:From> string
Call rtrange.SetBegin(rtnav)
Call rtrange.SetEnd(rtnav)
' Remove the <Reply:From> string
Call rtrange.Remove()
' Go to the next text range after the <Reply:From> string
Call rtrange.SetBegin(rtnav)
Call rtrange.SetEnd(rtnav)
' Insert the hotspot in the right place
Call rtitem.BeginInsert(rtrange, False)
' ** I WANT TO INSERT HERE THE HOTSPOT, BUT I CAN'T FIGURE IT OUT **
Call rtitem.EndInsert
Call rtitem.AppendRTItem(dxlbody)
End If
【问题讨论】: