Creating a Reference to an Automation Library

To use the objects of a program that supports Automation (a server), you have to reference the program's type library. A program's type library (also called its object library) is a file containing a description of the program's object model. After you've referenced the type library of an automation server (also called a component), you can access the objects of the server as though they were internal Visual C# .NET objects.

Many types of components support automation. Of course, .NET is the latest technology, but in the case of Excel, we're interested in the COM components. COM stands for Component Object Model, and it's been the technology for working with objects within Windows for many years. ...

Get Sams Teach Yourself Microsoft® Visual C#™ .NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.