ISSignature.CaptureSignature

Description

This function shows the dialogue window for signature input, returns the result of the process completed and the entered signature in the RTF format.

0 S_OK
1 SIGNATURE_CANCEL
2 SIGNATURE_NOT_CONNECTED
3 SIGNATURE_UNKNOWN_ERROR

Syntax

object.CaptureSignature(aSignatureRtfText)

Part Attribute Type Description
object Required
The object always implements the ISSignature interface
aSignatureRtfText Out, Required
object&

Return Value

int

Returns the result of the signature input.

Example

Display the signature input dialog and show the entered image as the HTML document.

Dim aSignature
Dim aRtf
Dim aResult
Dim aHTML

Set aSignature = Form.Controls_("Signature1")
aResult = aSignature.CaptureSignature(aRtf)
if aResult = 0 then 'ok
  aHTML = Profile.RTF2HTML(aRTF)
  Profile.ShowHTML aHTML, "Entered Signature" 
end if
Note: This macro should be executed in any event handler of the form control.

Version information

Added in v8.5.0
parameter aSignatureRtfText added in v8.5.0