I have 2 rich text fields. When an action is performed, the text from on RTF will be copied unto the other RTF. I'm able to perform that using 2 text fields, but I'm still unable to do the same using the RTF. Can someone help me with that ???
What you can do is create a new Rich Text item or select an existing one and then append the contents of the first item to the second item using the AppendRTItem method.
Below is an example from the Designer help:
Dim docA As NotesDocument
Dim docB As NotesDocument
Dim rtitemA As Variant
Dim rtitemB As Variant
'...set values of docA and docB...
Set rtitemA = docA.GetFirstItem( "Body" )
Set rtitemB = docB.GetFirstItem( "Body" )
If ( rtitemA.Type = RICHTEXT And _
rtitemB.Type = RICHTEXT ) Then
Call rtitemA.AppendRTItem( rtitemB )
Call rtitemB.Remove
Call docA.Save( False, True )
Call docB.Save( False, True )
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.