在将数字签名添加到word文档时禁止/隐藏对话框 [英] Suppress/hide the dialog box at time of adding digital signature to a word document

查看:202
本文介绍了在将数字签名添加到word文档时禁止/隐藏对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将签名行添加到word文档中。我想用代码来做,当我运行我的代码时,我看到下面的对话框。如何隐藏此对话框?



http:// i .stack.imgur.com / 3seVf.jpg [ ^ ]





这是我正在使用的代码。



I am trying to add signature line to a word document. I want to do it using code, when I run my code I see below dialog. How do I hide this dialog ?

http://i.stack.imgur.com/3seVf.jpg[^]


This is the code I am using.

SignatureSet signatureSet = doc.Signatures;
object sigID = Guid.NewGuid();
signatureSet.ShowSignaturesPane = false;
// This line opens that dialog.
Signature signature = wordApp.ActiveDocument.Signatures.AddSignatureLine(sigID);

//Signature signature = signatureSet.AddSignatureLine(sigID);
signature.Setup.SuggestedSigner = "docSigner";
signature.Setup.SuggestedSignerEmail = "abc@xyz.com";
signature.Setup.ShowSignDate = true;

signature.Sign();





提前致谢。



Thanks in advance.

推荐答案

这篇关于在将数字签名添加到word文档时禁止/隐藏对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆