This example shows how to add Digital signature to document.Β SeeΒ SignResult
using(Signaturesignature=newSignature(excelFilePath)){DigitalSignOptionssignOptions=newDigitalSignOptions();//Add extension for signing VBA project digitallyDigitalVBAdigitalVBA=newDigitalVBA(certificatePath,password);//Set to true only for signing VBA projectdigitalVBA.SignOnlyVBAProject=true;digitalVBA.Comments="VBA Comment";signOptions.Extensions.Add(digitalVBA);// sign document to fileSignResultsignResult=signature.Sign(outputFilePath,signOptions);}
More resources
GitHub Examples
You may easily run the code above and see the feature in action in ourΒ GitHub examples: