Skip to content

how to export SQL data to excel. For this we will be using Microsoft.Interop.Office.Excel namespace and C#. The classes and interfaces in Microsoft.Interop.Office.Excel gives support for interoperability

Notifications You must be signed in to change notification settings

geeksarray/how-to-export-sql-data-to-excel-using-microsoft-office-interop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

How To Export SQL data to Excel using Microsoft Office interop

how to export SQL data to excel. For this we will be using Microsoft.Interop.Office.Excel namespace and C#. The classes and interfaces in Microsoft.Interop.Office.Excel gives support for interoperability.

For this tutorial we have to add reference to Microsoft.Interop.Office.Excel for this Microsoft office has to be installed. So before starting make sure you have Microsoft Office installed on your machine.

Files

  1. ExportProductsToExcel/Program.cs has all required code to read to data from SQL server and convert it to excel using Microsoft.Interop.Office.Excel.

Once you implement this your excel will be like

export sql data to excel

For more details visit - How to export SQL data to excel using Microsoft.Interop.Office.Excel and C#

About

how to export SQL data to excel. For this we will be using Microsoft.Interop.Office.Excel namespace and C#. The classes and interfaces in Microsoft.Interop.Office.Excel gives support for interoperability

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages