问题
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