Whether you insert an OLE object into a DataWindow object or create a new DataWindow object using the OLE presentation style, you are working with an OLE container object within the DataWindow object.
They have these characteristics in common:
Icon or contents The DataWindow object can display the OLE object as an icon, or it can display an image of the contents when display of contents is supported by the server.
Data from the DataWindow object You specify which DataWindow columns you want to transfer to the OLE object. The data that is sent to the OLE server replaces the OLE object template specified in the painter.
The OLE object in a DataWindow object and the OLE presentation style have these main differences:
Associating the object with rows When the OLE object is added to a DataWindow object, you can associate it with individual rows, groups of rows, or all rows. In the presentation style, the OLE object is always associated with all rows.
Properties view The Properties view for an OLE object has different pages and some different properties from the OLE DataWindow object. For example, the Properties view for an OLE object in a DataWindow object does not contain detailed print specification settings because these are set in the DataWindow object’s own Properties view. However, it does have settings related to the position of the OLE object within the DataWindow object.
Not all servers are appropriate The features of the OLE server application determine whether it can provide useful information in a DataWindow object.
If the server does not support display of contents, it is not useful for objects associated with rows. The user sees only the icon. Some servers support the display of contents, but the view is scaled too small to be readable even when the object is activated.
This section includes procedures for:
Adding an OLE object to a DataWindow object
Using the OLE presentation style
Defining the OLE object
Previewing the DataWindow object
Specifying DataWindow data for the OLE object