add a digital signature to a document without displays the Signatures dialog box?

Hi,

I am trying to do a web application, the idea is:

1 user upload a file (word, powerpoint etc)

2. the server side receive it and sign a signature with the user's information on it.

I want to save the digital certificate for each user on the server side so that users do not need to choose which certificate they use. But it seems that the method Signatures.Add will displays the Signatures dialog box and I have to choose a digital signature manually to a document. Is there anyway to add the signature without showing the signatures dialog box (e.g. my certificate is already saved on the server, so I use a method like Singatures.addMycertificate("certificate1") )

Many Thanks

Jerry



Answer this question

add a digital signature to a document without displays the Signatures dialog box?

  • hye_heena

    Hello daxu,

    I had a look and there doesn't look to be a way around it, the select certificate dialog is modal so you can't even use SendKeys. The only thing I recommend and this might not be useful as it depends on your system is to use a signature thats not part of the document. Xml Digital Sigantures for example let you create signatures for stand alone documents, but I'm not sure if Word is equiped with the methods you need to build XML signatures from self signing certificates.

    that wasn't very helpful but it could be another option if you don't find a solution.



  • progames25

    Hi Jerry

    I think Microsoft didn't expose this for security reasons. If you could
    do it, then any virus program could link up documents with signatures...

    -- Cindy



  • add a digital signature to a document without displays the Signatures dialog box?