LOTUSSCRIPT/COM/OLE CLASSES


Examples: Sign method
This script creates a new document in the current database, signs it, saves it, and gets the name of the certificate that verified the signature. The document is signed with the current user's Notes ID.

Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim verifyName As String
Set db = session.CurrentDatabase
Set doc = New NotesDocument( db )
doc.Form = "Main Topic"    
doc.Subject = "A signed document"    
Call doc.Sign
Call doc.Save( False, True )
verifyName = doc.Verifier

See Also