VSTO 2010 in C# – how to make word add-in

The common way to develop new functionality or custom functionality to outlook, word, excel is to develop COM addins. There are many different different technologies for making these types of addins such as Visual Basic 6.0, Delphi, C++ and .net etc.

Continue reading “VSTO 2010 in C# – how to make word add-in”

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#”

Import data from excel to DataGridView in C#

In this article we will discuss that how to import data from any excel file into datagridview control in c#.
– Start a new project in your visual studio in C#.

– Add reference of Microsoft ADO Ext. 2.8 from .net COM component. We will use this library to extract all Excel Sheet from Excel file. Continue reading “Import data from excel to DataGridView in C#”