This function makes a copy of the letter for the specified recipients.
object.Clone
aRecipientType, aCC
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISLetter interface |
|
aRecipientType |
In, Required | string |
The type of the recipient. It is not
used |
aCC |
In, Required | string |
The comma-separated list of CC
recipients |
Make a copy of the letter for the specified recipients.
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)
aLetter.Clone "", "John Test"
aMessage = aMessage & vbNewLine &_
"Letter Date: " & aLetter.Date & vbNewLine &_
"Letter Subject: " & aLetter.Subject2 & vbNewLine & vbNewLine
next
Profile.MsgBox (aMessage)
In Profile Client v8 on User Interface Letters can be found in
or in .