<시스템환경>
 - Windows Vista 
 - Visual Studio 2005
 - Office2007

   Excel.Application objApp = null;
   Excel._Workbook objBook = null;
   Excel.Workbooks objBooks = null;
   Excel.Sheets objSheets = null;
   Excel._Worksheet objSheet = null;
   Excel.Range objRange = null;

   // Instantiate Excel and start a new workbook.
   objApp = new Excel.Application();
   objApp.DisplayAlerts = false;
   objBooks = objApp.Workbooks;
   objBook = objBooks.Add(Missing.Value);
   objSheets = objBook.Worksheets;
   objSheet = (Excel._Worksheet)objSheets.get_Item(1);



출처 : http://mita.tistory.com/3

Posted by 요지
,