none
Suppress/hide the dialog box at time of adding digital signature to a word document. RRS feed

  • Question

  • Hi,

    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 ?


    dialog

    Thanks in advance. 


    Rohit

    Monday, March 31, 2014 4:19 PM

Answers

  • Hi Rohit,

    I tried to hide the dialog via the code below:

    Application.DisplayAlerts = wdAlertsNone

    However it failed, so I am afraid we can’t hide the signature setup dialog at present.
    If you want to Word to support this feature, I suggest you submitting the feedback from Submit Feedback.

    Best regards

    fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 1, 2014 9:49 AM
    Moderator

All replies

  • Hello Rohit,

    What code do you use for displaying the dialog shown above?

    Monday, March 31, 2014 5:48 PM
  • 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();
    


    Rohit

    Tuesday, April 1, 2014 6:48 AM
  • Hi Rohit,

    I tried to hide the dialog via the code below:

    Application.DisplayAlerts = wdAlertsNone

    However it failed, so I am afraid we can’t hide the signature setup dialog at present.
    If you want to Word to support this feature, I suggest you submitting the feedback from Submit Feedback.

    Best regards

    fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, April 1, 2014 9:49 AM
    Moderator