How to call a VSTO AddIn method from a separate C# project?

前端 未结 4 2079
情深已故
情深已故 2020-12-10 07:14

I have a C# Excel Add-in project \"MyExcelAddIn\" that has a public method Foo() to do something complex. For testing purposes, the add-in also defines a toolbar button whic

4条回答
  •  -上瘾入骨i
    2020-12-10 07:30

    I'm using the SendMessage Win32 API to do this. My C# Add-in creates a "NativeWindow" with a uniqe window title that the WinForm app can locate.

提交回复
热议问题