Arshi Khan

Arshi Khan

  • NA
  • 15
  • 13.8k

How to convert a windows form into Excel Sheet using VS2012

Oct 21 2014 2:12 AM
I have some data in a dataGridView. I want to convert data on button click into a excel sheet.
I used the namespace
using Excel = Microsoft.Office.Interop.Excel;
 
but it gives an error at 'Office' . What should I do now? 
I am using VS2012 and SQL server 2008 with MS Office 2012. 

Answers (2)