我如何使用C#解压缩docx文件? [英] How I can Unzip docx file using C# ?

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

问题描述

我要解压缩的docx文件使用C#,,我该怎么办

解决方案
DOCX IS的的Office Open XML [ ^ ]格式。

所以,这与通用zip没有直接关系,而是办公室存储文件的方式。



C#提供
包类 [ ^ ]处理此类文件。



请注意,程序包只能理解表单,而不是内容。即如果你想处理word文件,这不是一个富有成效的方法。使用 VSTO [ ^ ]或 Office.Interop [ ^ ]而不是。



干杯

Andi


你能看一下吗?这链接 [ ^ ]。


参见此处 [ ^ ]。


I want to Unzip docx file using C# ,, how I can do ?

解决方案

docx is Office Open XML[^] format.
So, this has not directly to do with general purpose zip, but rather with the way office stores the file.

C# provides the package class[^] to process such files.

Please note that a package only understands the form, not the content. I.e. if you want to process word files, this is not really a fruitful approach. Use VSTO[^] or Office.Interop[^] instead.

Cheers
Andi


Can you please have a look at this link[^].


See here[^].


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

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