Hi,
I’m trying to Find/Replace a specific string in a (computed) richtext field with a new string which includes a blank line.
Finding the string and replacing it is no problem, but the blank lines in the replacement string are omitted, which causes an issue with the layout.
Any help would be very much appreciated.
Here’s the code I use:
Dim updatestring as string
updatestring = “</Latest Entry>” + Chr(13) + “This is a test”
Dim rtitem As notesrichtextitem
Dim rtnav As NotesRichTextNavigator
Dim rtrange As NotesRichTextRange
Set rtitem = doc.GetFirstItem(“DPHistory”)
Set rtnav = rtitem.CreateNavigator
Set rtrange = rtitem.CreateRange
Call rtrange.FindandReplace(“</Latest Entry>”,updatestring)