GetItemValue(“Body”)(0) with multiple Body (RichText) fields truncates the text.
According to Designer Help “If multiple items have the same name, this method returns the value of the first item.”
We have tried, in vain, to merge the multiple Body fields, by looping through all of them and deleting them step-wise:
…
While doc.HasItem(“Body”)
tempBody = tempBody & " " & doc.GetItemValue("Body")(0)
Call doc.RemoveItem("Body")
Wend
…
Other alternatives do not truncate, but instead destroys LF/CR halfway through the text, e.g.
-
GetUnformattedText
-
GetFormattedText
-
Text property of NotesItem class
-
Values property of NotesItem class
RichTextNavigator does not work either, not grabbing all paragraphs.
Compact method not working either.
Any suggestions?