Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I am trying to add signature line to a word document. I want to do it using code, when I run my code I see below dialog. How do I hide this dialog ?

http://i.stack.imgur.com/3seVf.jpg[^]


This is the code I am using.

SignatureSet signatureSet = doc.Signatures;
object sigID = Guid.NewGuid();
signatureSet.ShowSignaturesPane = false;
// This line opens that dialog.
Signature signature = wordApp.ActiveDocument.Signatures.AddSignatureLine(sigID);

//Signature signature = signatureSet.AddSignatureLine(sigID);
signature.Setup.SuggestedSigner = "docSigner";
signature.Setup.SuggestedSignerEmail = "abc@xyz.com";
signature.Setup.ShowSignDate = true;

signature.Sign();


Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900