Syntax

expression.Sign(varSigImg, varDelSuggSigner, varDelSuggSignerLine2, varDelSuggSignerEmail)

expression An expression that returns a Signature object.

Parameters

Name Required/Optional Data Type Description
varSigImg Optional Variant The signature line graphic image.
varDelSuggSigner Optional Variant The suggested signer.
varDelSuggSignerLine2 Optional Variant The additional signature line.
varDelSuggSignerEmail Optional Variant The e-mail address of the suggested signer.

Remarks

When the Sign method is called, Microsoft Office creates a manifest and calls the signature provider to create a hash for each stream in the document. Office then bundles up the results into an unsigned XMLDSIG template and calls to the provider to modify the XMLDSIG (if necessary) and then sign it. The resulting signed signature is then handed back to Office to be stored.

Example

In the following example, the variables for the signature image, signer, signer's title, and signer's e-mail address are set and then the Sign method is called to create and sign a signature packet.

Visual Basic for Applications
Set objSignature = New Signature varSigline = CType(AxHost2.GetIPictureDispFromPicture(img),IPictureDisp) varSuggestedSigner = "Nancy Davolio" varSignatureTitle = "Sales Represenative" varSignerEmail = "ndavolio@northwindtraders.com" objSignature.Sign(varSigline, varSuggestedSigner, varSignatureTitle, varSignerEmail)

See also: