PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Finding out the name of the OLE file associated with a control
  • Modifying the content of an OLE control
  • Displaying the content of an OLE binary memo
  • Various
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
OLELoad (Function)
In French: OLECharge
Initializes an OLE control with an OLE object. The OLE server is invoked to load the OLE object. The OLE object appears in the control: the control is updated. The server is not started.
Note: Depending on the server that created the OLE object, the object can be displayed in the control as:
  • its bitmap representation. Example: image created with Paint Brush.
  • its vector representation. Example: worksheet created with Excel.
  • the icon representing the server. Example: WinWord icon.
  • text.
Example
// Load the object
OLELoad(OLE_OLE2, "OBJECT1.OLE")

// Process the object

// Save the object
OLESave(OLE_OLE2, "OBJECT1.OLE")
Syntax
<Result> = OLELoad(<Control Name> , <File Name>)
<Result>: Boolean
  • True if the OLE object was loaded,
  • False otherwise.
<Control Name>: Character string (with or without quotes)
Name of OLE control to initialize. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
<File Name>: Character string (with quotes)
Name of OLE object. This object must have been created by OLESave.
Remarks

Finding out the name of the OLE file associated with a control

To find out the name of the OLE file associated with a control, use the following syntax:
FileName = OLE_OLE1 // OLE_OLE1 is the name of the control

Modifying the content of an OLE control

To modify the name of the file associated with a control, use the following syntax:
OLE_OLE1 = FileName // OLE_OLE1 is the name of the control
This line is equivalent to OLELoad(OLE_OLE1, FileName).

Displaying the content of an OLE binary memo

To display the content of an OLE binary memo, use the following syntax:
OLELoad(ControlName, FileName.ItemName)
For example:
OLELoad(OLE_OLE1, PR.OLE)

Various

Only OLE version 1 is supported.
Components
WINDEVReports and Queries wd230ole.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment