I'm trying to detect a present signature in a Word document with VSTO. I am stuck, because one I don't have much experience with VSTO and second I can't find any documentation about this.
What did I develop so far?
- Created a Ribbon Add-In for Word 2007, with two buttons.
- Created methods for handling the clicked buttons.
- When Start Debugging, Word opens with a document which include a Signature Line(locally stored document).
Where did I get stuck?
I've tried to figure out which properties are involved with Signature. Some code:
Word.Application wa = this.applicationObject;
Word.Document doc = wa.ActiveDocument;
SignatureSet ss = doc.Signatures;
As a result the SignatureSet remains empty, while there is a present Signature Line. The count property is always 0.
What should be fixed or done to get a working IsDocumentSigned Method?
All kind of tips and tricks are pleased to see :)