Please explain why I am able to instantiate the “Application” interface in Excel VSTO

后端 未结 2 2088
一生所求
一生所求 2020-11-30 08:02

I have the following C# code in my application which works just fine. It launches a new instance of Excel.

private readonly Microsoft.Office.Interop.Excel.A         


        
2条回答
  •  悲哀的现实
    2020-11-30 08:18

    Because MSDN says so:

    For example, the following code uses the Excel Microsoft.Office.Interop.Excel.Application interface. At run time, it uses the Application class to instantiate an Excel Application object and open a worksheet.

提交回复
热议问题