Is it possible to start an Excel add-in (in my case statistiXL) and interact with it by using c#? The add-in opens a frame with some fields, that also should be accessible with c#.
Thanks.
You can do it using Excel Interop; be aware addins aren't loaded when starting Excel via interop so you need to do something like this:
var excel = new Application();
var workbook = excel.workbooks.Add(Type.Missing);
excel.RegisterXLL(pathToMyXll);
excel.ShowExcel();
This example should get you going; it's in VB, but the interop object names and the concept are the same.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.