The way the OLE Object control displays the OLE object it contains. It can display an icon or an image of the object’s contents. The image is reduced to fit inside the OLE container.
Both the icon and the image are provided by the OLE server. If the OLE server does not support a contents view, the DataWindow server displays an icon even if DisplayType is set to contents.
OLE Object controls
Describe and Modify argument:
"olecontrolname.DisplayType { = ' type ' }"
Parameter |
Description |
---|---|
olecontrolname |
The name of the OLE Object control for which you want to get or set the type of display. |
type |
A number specifying whether the user will see an icon or an image of the OLE object’s contents. Type can be a quoted DataWindow expression. Values are:
|
Select the control and set the value in the Properties window, Options category.
[Visual Basic] ls_data = dw1.Describe("ole_report.DisplayType")
dw1.Modify("ole_report.DisplayType='1'")