如何使用 C# 解压缩 docx 文件? [英] How to unzip docx file using C#?

查看:32
本文介绍了如何使用 C# 解压缩 docx 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 C# 解压 docx 文件?

How to unzip docx file using C#?

推荐答案

新的 Office 文件扩展名(docx、potx、xlsx 等)在上传到 Web 服务器然后下载时会变成 zip 文件.

The new Office file extensions (docx,potx,xlsx,etc) turning into zip files when they are uploaded to a web server and then downloaded.

这些文件格式现在使用 Open XML 文件格式系统,因此它们与来自 Google、Open Office 等的其他办公程序更加兼容.本质上,它们是充满 XML 文件的 zip 文件,当使用适当的应用程序打开这些文件时,这些文件会变成友好的 Word 文档.

These file formats are now using an Open XML file format system so they are more compatible with other office programs from Google, Open Office...etc. Essentially they are zip files that are full of XML files that when opened with a proper application turn into a friendly word document.

我从 这里 在这里您可以找到完整的信息.

I stole this full of shame from here where you can find full info.

我希望这个答案能帮助你和所有那些嘲笑你并在甚至不知道答案的情况下对你的问题投反对票的无知者.

I hope this answer will help you and all the ignorant people that made fun of you and negative voting your question without even knowing the answer.

这篇关于如何使用 C# 解压缩 docx 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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