Signature Line

E

Exformatics

Hello,

I'm trying to automate insertion of a signature line in word documents.
Since I know who the user is I would like to skip the dialogs shown by Word
if you do it by clickin on the insert/Signature line button.

if I do the following:

Dim signt As Microsoft.Office.Core.Signature = oDoc.Signatures.Add()
oDoc.Signatures.Commit()

I get only the sign dialog and a Signature line is inserted, however nothing
is shown in the document.

If I do the following:

Dim signt As Microsoft.Office.Core.Signature =
oDoc.Signatures.AddSignatureLine(Nothing)

signt.Sign(Nothing, "My Name", "President", "(e-mail address removed)")

oDoc.Signatures.Commit()

I first get a dialog where to input name, title, email etc. If I just click
OK (not entering anything) I get the sign dialog and then a new signature is
added with the data I added in the call to the Sign method. The image and
information is shown in the document.

The second aproach would be fine if I atleast could get rid of the first
dialog but I have found no way so far. Anybody knows? It would be even better
if I could also get rid of the second dialog.

I have found no way of adding information to my first attempt. Using:

signt.Setup.AdditionalXml = ""

just causes an exception to be cast.

Is it possible to do what I want? Is there a bug in Word or am I doing
something wrong?

I'd apreciate any help you could give...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top