Free for PREMIUM members
Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
'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
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.
Premium members get this course for $37.50.
Premium members get this course for $62.50.
Premium members get this course for $31.25.
Premium members get this course for $159.20.
Premium members get this course for $389.00.