PC SOFT

WINDEV的在线文档

  • Overview of the OLE control
  • WinDev and the OLE controls
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
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.
Notes:
  • 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.