Click here to Skip to main content
11,640,445 members (64,576 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Word
I want to Unzip docx file using C# ,, how I can do ?
Posted 5-Mar-13 22:31pm
Rate this: bad
good
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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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

Solution 1

See here[^].
  Permalink  
Comments
Andreas Gieriet at 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 at 6-Mar-13 6:10am
   
Thanks for the information.
Andreas Gieriet at 6-Mar-13 6:42am
   
You are welcome!
Andi
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Check this for better code explanation Click me
  Permalink  

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

  Print Answers RSS
0 Mika Wendelius 300
1 CPallini 209
2 OriginalGriff 165
3 Sergey Alexandrovich Kryukov 139
4 Afzaal Ahmad Zeeshan 130
0 Mika Wendelius 200
1 OriginalGriff 145
2 CPallini 115
3 jgakenhe 40
4 sasanka sekhar panda 30


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 6 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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