如何查找文件是否经过数字签名 [英] How to find whether a file is digitally signed

查看:213
本文介绍了如何查找文件是否经过数字签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有几个Word和Excel文件.其中一些是经过数字签名的.如何以编程方式查找文件是否具有数字签名?

我提到了MSDN和其他论坛中提到的代码库(将msdn代码转换为.NET).但这对我没有用.

有人可以建议如何实现这一目标吗?

我使用XML方法对文档进行数字签名.

在Advance中致谢

Hi,

I have few Word and Excel files. Some of them are digitally signed. How do i programatically find whether the file has any digital signature ?

I referred to a code base mentioned in MSDN and other forums (converting the msdn code to .NET). But it didn''t worked for me.

Can anyone suggest how to acheive this ?

I used XML approach for Digitally signing the documents.

Thanks in Advance

推荐答案

与Word互操作,请使用_Document.Signatires属性:
http://msdn. microsoft.com/en-us/library/microsoft.office.interop.word._document.signatures%28v=office.14%29.aspx [ http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._workbook.signatures.aspx [
With Word interop, use _Document.Signatires property:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word._document.signatures%28v=office.14%29.aspx[^].

Likewise, with Excel, use _Workbook.Signatures:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel._workbook.signatures.aspx[^].

Did you try it?

—SA


这篇关于如何查找文件是否经过数字签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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