■ 기존 엑셀 프로그램 참조 구하기

----------------------------------------------------------------------------------------------------

using System.Runtime.InteropServices;

 

using Excel = Microsoft.Office.Interop.Excel;

 

...

 

Excel.Application excelApplication = null;

 

try

{

    excelApplication = Marshal.GetActiveObject("Excel.Application") as Excel.Application;

}

catch

{

}

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG