Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.

this is a single way to sign a document

*********************************

ThisApplication.ActiveDocument.Signatures.Add();

 

ThisApplication.ActiveDocument.Signatures.Commit(); Posted on Thursday, January 4, 2007 9:36 AM Digital Certificates | Back to top


Comments on this post: Digitally Signing a Word Document + C#

# re: Digitally Signing a Word Document + C#
Requesting Gravatar...
Hello!

I think that's a interesting thing!

Can you send me more documentation for sign a word document using c#. An Example?

Thanks!
Left by Albert on Jun 20, 2007 6:09 AM

# re: Digitally Signing a Word Document + C#
Requesting Gravatar...
Can you send me more documentation for sign a word document using c#. An Example?
Left by helime on Oct 04, 2010 9:23 PM

# re: Digitally Signing a Word Document + C#
Requesting Gravatar...
can you please share the full code here?
Left by Nisha on Apr 15, 2012 11:44 PM

# re: Digitally Signing a Word Document + C#
Requesting Gravatar...
Something like this (you need reference to Office and Word Interop):


using Microsoft.Office.Core;
using Microsoft.Office.Interop.Word;

ApplicationClass wordapp = new ApplicationClass();

Document wordDocument = wordapp.Documents.Open(
ref TempFilePath, ref missing,
ref readonlyfile, ref missing, ref missing,
ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing,
ref Visible, ref missing, ref missing,
ref missing, ref missing);
SignatureSet signatureSet = wordDocument.Signatures;
Signature objSignature = signatureSet.Add();
signatureSet.Commit();
Left by hostmax on Jun 26, 2012 7:27 PM

Your comment:
 (will show your gravatar)


Copyright © Gaurav Taneja | Powered by: GeeksWithBlogs.net