How can I display some info from a richtext field in a view - or even just flag that there is some info in an Rt...
field (by an icon ??) You can display the text from a rich text field in a view by creating another field that contains the "text-only" contents of the rich text field and display that in your view. You could use the GetFormattedText method of NotesRichTextItem to do this in a closing event for your form.
.... where NotesDoc is your existing variable pointing to the NotesDocument
.... object you're working with and "converted_rich_text" is the new field you
.... want to create containing the text that is in your Rich Text field
dim plain_text as string
dim rich_text_item as NotesRichTextItem
set rich_text_item = NotesDoc.GetFirstItem( "RichTextItemName_Here" )
plain_text = notesRichTextItem.GetFormattedText( strip_tabs,length_of_line )
Call NotesDoc.ReplaceItemValue( "converted_rich_text", plain_text )
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.