ISLetter.RTFBody

Description

The text of the letter in RTF format.

Syntax

object.RTFBody

Part Attribute Type Description
object Required
The object always implements the ISLetter interface
Restriction: This property is readonly.

Return Value

string

Example

Display some information about the letter, including its text in RTF format.

Dim aPatient
Dim aLetters, aLetter
Dim i
Dim aMessage

Set aPatient = Profile.SelectPatient
set aLetters = aPatient.GetLetters (1) ' slcfWordRTF

aMessage =_
  "The number of the letters of the selected format is " & aLetters.Count

for i = 0 to aLetters.Count - 1
  set aLetter = aLetters.Item(i)                             
  aMessage = aMessage & vbNewLine &_
    "Letter Date: " & aLetter.Date & vbNewLine &_
    "Letter Subject: " & aLetter.Subject2 & vbNewLine &_
    "Recipient: " & aLetter.Recipient & vbNewLine &_
    "RTF Body: " & Profile.RTF2Plain(aLetter.RTFBody) & vbNewLine
next

Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface RTF Text format cannot be found. Letters can be found in Clinical > Medical Record > Documents or in Organisation > Work Centre > Communication > Letters.

Version information

Added in v7.8.0