How to check if .net interoperability for excel is installed

后端 未结 3 1258
傲寒
傲寒 2021-01-27 23:48

I am using .net Primary Interoperability Assembly for Excel in my code. But, the application can be run on machine which doesn\'t have .net PIA for Excel installed. I want to gi

3条回答
  •  情话喂你
    2021-01-28 00:00

    You shouldn't make static reference to Excel.Interop library. Instead of this, you should look for it in GAC, and load it in runtime. It's rather complicated, and there are no managed API to do this (by default).

    Try to use this: fusion.dll API wrapper

提交回复
热议问题