none
Signature Line RRS feed

  • Question

  • I am trying to automate insertion of a signature line in word documents.
    Since I know who the user is I would like to skip the dialogs shown by Word
    if you do it by clickin on the insert/Signature line button.

    if I do the following:

    Dim signt As Microsoft.Office.Core.Signature = oDoc.Signatures.Add()
    oDoc.Signatures.Commit()

    I get only the sign dialog and a Signature line is inserted, however nothing
    is shown in the document.

    If I do the following:

    Dim signt As Microsoft.Office.Core.Signature =
    oDoc.Signatures.AddSignatureLine(Nothing)

    signt.Sign(Nothing, "My Name", "President", "xx@xx.com")

    oDoc.Signatures.Commit()

    I first get a dialog where to input name, title, email etc. If I just click
    OK (not entering anything) I get the sign dialog and then a new signature is
    added with the data I added in the call to the Sign method. The image and
    information is shown in the document.

    The second aproach would be fine if I atleast could get rid of the first
    dialog but I have found no way so far. Anybody knows? It would be even better
    if I could also get rid of the second dialog.

    Tks,

    Rui

    Friday, June 10, 2011 10:09 PM

Answers

  • Hi Rui,

     

    Thanks for your post.

    Do you mean the dialog is the illustration below:

     

    If so, I think you can check the “Don’t show this message again” item to prevent the dialog from popping up from now on.


    Best Regards, Calvin Gao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, June 15, 2011 12:15 PM
    Moderator