ISLetterWorkParams.SavedLetterID

Description

ID of the created letter.

Syntax

object.SavedLetterID

Part Attribute Type Description
object Required
The object always implements the ISLetterWorkParams interface

Return Value

int

Example

Print the letter for the selected patient and display the printing result.

Dim aPatient
Dim aParam

Set aPatient = Profile.SelectPatient
set aParam = Profile.CreateLetterWorkParams
aParam.PatientId = aPatient.Id
aParam.Template = "All Categories\Template 1"
aParam.Date = DateAdd("yyyy", -5, Now)
  
Profile.GenerateAndPrintLetter(aParam)

Profile.MsgBox("Saved Letter ID: " & aParam.SavedLetterID)   
Note:

In Profile Client v8 on User Interface Letter ID cannot be found.

Version information

Added in v7.8.0