WinForms FAQ - COM

How can I get events fired by an Office XP chart control hosted in my Windows Forms app?

To get these events instead of using event delegates, you can create a sink for the events by
using the IConnectionPointContainer and IConnectionPoint interfaces of the Spreadsheet/Chart
component. Here are two articles that you can check:

HOWTO: Handle Office XP Spreadsheet Events in Visual C# .NET

HOWTO: Handle Office XP Chart Events in Visual C# .NET

Reply posted by Elan Zhou (MS) in microsoft.public.dotnet.framework.windowsforms.

Permalink
How do you make .Net components that could be used by COM

The tool Regasm.exe can create a COM typelib and creates the necessary entries in the registry (the CLSID and Typelib ). If only a typelib is required, you can use tlbexp.exe. A com callable wrapper (CCW) will be created when a COM client (VB, VBS, JS, C++ etc.) creates an instance of a (managed) class.

Permalink
Should I try to use Interoperability or migration to use COM with .NET

John Godel tackles this question through a lengthy article on
C# Corner. In it, he discusses the basics (and more) of both .NET Interoperability and Migration.

Permalink
How can I read and display Excel files from within my C# application

.NET’s interoperability makes it easy to work with COM Capable Applications such as Word and Excel.

See Mike Gold’s article on C# Corner for a detailed discussion.

Permalink
How do you invoke a COM Class in a specific COM DLL in .Net

Imtiaz Alam discusses both early and late binding techniques in his article entitled Accessing COM+ component using C# on C# Corner.

Permalink