• Overview of the OLE control
  • WinDev and the OLE controls
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview of the OLE control
The OLE control is used to handle an OLE object.

Reminder: OLE is a protocol for exchanging data and commands whose principle consists in embedding and linking objects. The Client/Server connection is established as soon as the embedded object is opened.

An OLE object is a file containing:

  • the reference of the OLE server that created the object
  • the object itself (image, document...).
Technically speaking, an OLE object encapsulates data containing text, images, sounds... Data encapsulation in OLE objects enables these objects to be exported without knowing anything about their structure.

To create an OLE control:

  1. In the window editor, clickor select "Insert .. Control .. OLE control".On the "创建" pane, in the "其他控件" group, click "OLE".
  2. Click the position where the control must be created in the window.
To display the characteristics of the control, select "Description" from the popup menu of the control.

WinDev and the OLE controls
WinDev is an OLE client. The applications developed in WinDev request the data, display and store the OLE objects.

The OLE servers provide the objects to the clients that request them. These objects can be PaintBrush, Excel, WinWord...

As a client, WinDev supports the OLE objects. It is used to:

  • draw an object in an OLE control. An object can be an Excel worksheet, a Paint Brush graphic image...
  • edit an OLE object in an OLE control. The OLE object can be:
    • chosen in the editor or by programming.
    • defined according to a server or to a base file.
  • In programming, an OLE control is handled by specific functions. WinDev is not an OLE server.
  • OLE version 1 and OLE version 2 are supported (the later versions are not supported).
  • An OLE object cannot be printed in WinDev. The object is updated upon request.
  • An OLE control can contain a single OLE object.