Click here to Skip to main content
11,495,331 members (67,647 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5
Hi,

I need to digitally sign a document (Word/Excel) programatically using C#.
I found few posts on internet showing me how to just add a digital signature.

By default, i am using Microsoft Office Signing capabilities for this purpose.
Now, i want to embed an image to this Digital Signature Programatically and place it at the end of the file.

Can anyone help me?

Please note that if we try to add Digital Signature in Word/Excel file it asks us to select an image. I need to do that programatically

Thanks in Advance
Posted 5-Oct-11 9:47am
YKK Reddy1.6K
Comments
BillWoodruff at 5-Oct-11 17:43pm
   
Can you can use automation to get Excel and/or Word to perform this process via VSTO ?
hirarani at 8-Nov-13 1:15am
   
how to add digital signature in word document and when i open it then i can find encrypted data
YKK Reddy at 6-Oct-11 0:24am
   
Hi,

Can you post a sample code ?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I googled it and asked many experts. They came out with different solutions which proved to be costly (performance was getting hampered).

So i have added image at the end of the word document using Interop assemblies and then applied Digital Signature (using open XML) approach.

Although word/Excel allows choosing an image while digitally signing, it is quite difficult to acheive this.

So, the functionality is broken into 2 parts.
1. Add Image file.
2. Add digital Signature
  Permalink  
Comments
Member 8719776 at 16-Apr-12 6:41am
   
Hi,

Can you please explain how to add digital signatures to a document (Word/Excel) programatically using C#?

Much Thanks,
Nisha

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 275
3 Sergey Alexandrovich Kryukov 255
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,307
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,412
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 26 Dec 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100