none
Add multiple digital signature in MS Word Programmatically NOT simultaneously RRS feed

  • Question

  • Hi,

    I want to add Multiple digital signature programmatically from my code one by one. One person signs the document at a time and another signs afterwards. It's important that digital signs should be visual.

          Word.Application wordApp = this.Application;
          Word.Document doc = wordApp.ActiveDocument;
          
    	  //signature 1
          object sigID = "{00000000-0000-0000-0000-000000000000}";
          Office.Signature sig = doc.Signatures.AddSignatureLine(sigID);
          sig.Setup.SuggestedSigner = "ddd";
          sig.Setup.SuggestedSignerEmail = "kk@126.com";
          sig.Setup.SuggestedSignerLine2 = "sadfas";
    	  sig.Sign();
    	  doc.Signatures.Commit();
    	  
    	  //signature 2
          object sigID2 = "{00000000-0000-0000-0000-000000000000}";
          Office.Signature sig2 = doc.Signatures.AddSignatureLine(sigID2);
          sig2.Setup.SuggestedSigner = "aaa";
          sig2.Setup.SuggestedSignerEmail = "jj@163.com";
          sig2.Setup.SuggestedSignerLine2 = "eee";
          sig2.Sign();
          doc.Signatures.Commit();
          

    In the moment of adding the second signature line, the document is already signed and the first signature gets cleared. 

    Thanking in Advance,

    Zviad


    Friday, March 22, 2013 12:12 PM

All replies