Previous Topic: How CA Gen Supports OLENext Topic: CA Gen as an OLE Automation Controller


CA Gen Control through OLE Automation

OLE automation is controlling one application from within another application using objects. The objects used for this purpose are called OLE automation objects. An OLE automation object is an exposed component of an OLE automation server.

Automation objects provide properties and methods that allow the CA Gen application to control the server application, just as if you were issuing commands in the other application.

A method is a function that performs an action on the OLE automation object. For example if you are working with a column in a Microsoft Excel spreadsheet, you may apply a method to the column to sum the numbers contained in the column's cells.

Properties are the characteristics of an automation object that describe the object. For example, if you are working with a column in a Microsoft Excel spreadsheet, the column's width is a property that can be changed.

Not all OLE servers expose both methods and properties. If you are building a controller in CA Gen, you need to determine which methods and properties are available from the OLE servers you will be using.

CA Gen supports OLE automation by acting as an OLE automation controller or an OLE automation server.