Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to Unzip docx file using C# ,, how I can do ?
Posted

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
 
Share this answer
 
Can you please have a look at this link[^].
 
Share this answer
 
See here[^].
 
Share this answer
 
Comments
Andreas Gieriet 6-Mar-13 5:51am    
I think, this is not really about Zip but about unpack a package format file that happens to be stored in a zip form. See my solution#4 below.
Cheers
Andi
Richard MacCutchan 6-Mar-13 6:10am    
Thanks for the information.
Andreas Gieriet 6-Mar-13 6:42am    
You are welcome!
Andi
Check this for better code explanation Click me
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900