Decompress, Extract, Unzip file with GZipStream Class in C#

Code snippet for decompressing file with GZipStream class in C# (Apply for .net 4.0). GZipStream class is for compressing and decompressing file(s) into gzip (read about gzip format on wikipedia) format which is based on based on the DEFLATE algorithm. So data is read in on a byte-by-byte basis, so you can not perform multiple passes to determine the best method for compressing entire files or large blocks of data.

following code is for decompressing or extract a file in c# :

Continue reading Decompress, Extract, Unzip file with GZipStream Class in C#

Read inbuilt document properties of word document in C#

Word document properties are the details which describe the identity of a word document. In this article we will discuss about how to read document properties of any word document in C#.  Every word document has some inbuilt properties and custom properties such as Title, subject, category, Author and comments etc. In Ms-Word application, you can see or edit the document properties by opening Advance Document properties window just like if you are working on word 2010 you will see this like:

Advance properties in word 2010

Continue reading Read inbuilt document properties of word document in C#