Open protected word document with OpenXML

我怕爱的太早我们不能终老 提交于 2019-12-10 16:17:06

问题


I have searched every where but, I can't found any answer. All posts and discussions are about creating protected one but nothing for open it.

I have protected DOCX and DOC documents in my c# program and want to open them programmatically using OpenXML 2.5.

I have opened them using Office interlope as it has password parameter. But it's very slow with large documents number.

Can i open password protected word documents using OpenXml ? How ?

Thanks.


回答1:


Password protected documents (documents saved with a password) are not Zip packages, they're binary files. If you think about it, the reason is obvious: a Zip package of XML files is human-readable - not secure. So you can't manipulate password protected Word documents via the Open XML file format - it's simply not there.



来源:https://stackoverflow.com/questions/34380309/open-protected-word-document-with-openxml

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!