I am writing a C# WPF app that open, close, read and write to Excel.
I am curious when we say we use COM to manipulate Excel, what are the COM components we are talking about?
Does, for example, a WorkBook or a a WorkSheet is one of the COM component just like a TextBox is .NET Control components?
Also, before a Macro is run on an Excel sheet, a security warning would mentioned ActiveX. Does Excel consists of both COM components and ActiveX components?
Excel itself is the COM component, it implements an out-of-process COM server. WorkBook and WorkSheet are coclasses implemented by the server. ActiveX was a marketing name for COM components, fallen out of favor since their debacle with security issues in Internet Explorer. Excel itself can use COM servers (ActiveX components) too, that’s what the warning is about.