<시스템환경>
- 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);
'C#' 카테고리의 다른 글
[C#]Painting Your Own Tabs - Second Edition ( 탭 ) (0) | 2012.11.17 |
---|---|
[C#] Microsoft.Office.Interop.Excel Alignment(정렬) (0) | 2012.11.10 |
[C#] 폼 클릭으로 폼 이동 (1) | 2012.11.02 |
[C#] :: (펌)외부 응용프로그램 실행하기 (Process.Start 메서드) - CMD Application/C# (0) | 2012.10.10 |
[C#] 코드로 Dos 명령 실행하기! (0) | 2012.10.10 |