you can do this using OLEDB in C# excel http://csharp.net-informations.com/excel/csharp-excel-export.htm