c#MS word宏删除密码/安全性 [英] c# MS word macro remove password / security
本文介绍了c#MS word宏删除密码/安全性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
0
下来投票
最爱
i需要创建一个搜索程序对于目录中的docm文件并逐个检查所有文件的宏,检查特定文件中的宏是否受到保护。如果他们受到保护,那么使用主密码从他们那里删除密码。
你可以指导我如何使用.docm宏中的c#删除保护/密码文件,如果我知道密码。
提前谢谢。
0
down vote
favorite
i need to create a program which search for docm files in a directory and check all files one by one for macros, check that macros are protected or not in a particular file. if they are protected then remove password from them by using master password.
can you please guide me how to remove protection / passwords using c# from macro in ".docm" file if i know the password.
thanks in advance.
推荐答案
你可能需要使用 Microsoft.Office.Interop.Word命名空间 [ ^ ]。谷歌应该找到一些使用它的样本。
You are probably going to need to use the Microsoft.Office.Interop.Word namespace[^]. Google should find you some samples on its use.
这篇关于c#MS word宏删除密码/安全性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文