Click here to Skip to main content
14,328,524 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to Unzip docx file using C# ,, how I can do ?
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 4

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
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Can you please have a look at this link[^].
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

See here[^].
   
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
Rate this:
Please Sign up or sign in to vote.

Solution 3

Check this for better code explanation Click me
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100