Add Digital Signature Programatically RRS feed

  • Question

  • Hi ..
       i need to insert digital signature programattically[ to word,excel , autocad etc]. For word doucment ,
                moWordApp  =  Marshal.GetActiveObject("Word.Application");
                moActiveDoc =  moWordApp.GetType().InvokeMember("ActiveDocument",
                                        BindingFlags.GetProperty, null, moWordApp, null);
                oDocs = moActiveDoc.GetType().InvokeMember("Signatures",
                                        BindingFlags.GetProperty, null, moActiveDoc, null);

                object item = oDocs.GetType().InvokeMember("Add",
                                        BindingFlags.InvokeMethod, null, oDocs, null);

     i tryd this...But this will help only to open add signature window in the word file[then i can add the signature]. But my intention is to add signature without any user interaction.
    That is.. When user click a button, if a signature is available in the system, it will automatically insert to the document..
    please help me to solve the issue..If you have any sample code to solve this issue. please send that.


    • Moved by nobugz Monday, August 10, 2009 3:17 PM not a wf q (From:Windows Forms General)
    Monday, August 10, 2009 1:39 PM