如何在c#中用密码保存microsoft word文件 [英] how to save microsoft word file with password in c#
本文介绍了如何在c#中用密码保存microsoft word文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友们好,
您能告诉我如何使用c#创建,打开,编辑和保存Microsoft Word文件,并使用c#将密码放在该文件上br />
任何人都可以提供上述问题的片段或完整示例吗
谢谢
Hello friends,
Can you tell me how to create, open, edit and save microsoft word file using c# and also place password upon that file with c#
Can anyone provide snippet or full example of the above question to do that
thanks
推荐答案
Word Automation 上有一篇很好的文章[ ^ ]
另外,你可以在Word中录制一个宏来做你想要的,然后你可以看到代码的样子。
There is a good article at Word Automation[^]
Also, you can record a macro in Word doing what you want and then you can see what the code will look like.
这篇关于如何在c#中用密码保存microsoft word文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文