Improve company productivity with a Business Account.Sign Up
Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
'notesDoc = Document whose text needs to be extracted / exported
'"renderedDoc" = Name of the Rich Text Item that the above notesDoc is going to be rendered to
'newNotesDoc = temp notes document that shall store the "renderedDoc"
'notesRTItem = temp notes rich text item that shall extract the text from the item named "renderedDoc" in the newNotesDoc
newNotesDoc = notesDatabase.CreateDocument() 'creating temp notes doc
newNotesDoc.CreateRichTextItem("renderedDoc")'creating rtitem named "renderedDoc"
notesDoc.RenderToRTItem(newNotesDoc.GetFirstItem("renderedDoc")) 'rendering the notesDoc
notesRTItem = newNotesDoc.GetFirstItem("renderedDoc") 'extracting the text from the rtitem named "renderedDoc"
Open in new window
Set body = notesDoc.getFirstItem("Body")
bodyText = body.getFormattedText(True,72)
'or body.getUnformattedText(), or change 72 to a different wrap, or change True to False to leave any tab as-is
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.