ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / OLE functions
  • Clipboard content
  • Miscellaneous
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
OLEPaste (Function)
In french: OLEColle
Pastes the content of Windows clipboard into an OLE control.
Note If the clipboard content has been created from an OLE server, this is automatically associated with the object, otherwise the object will not be pasted. Depending on the server that created the OLE object, the object can be displayed in the control as:
  • its bitmap representation (example of image created with Paint Brush),
  • its vector representation (example of worksheet created by Excel),
  • the icon representing the server (icon created by WinWord),
  • text.
Example
// La portion d'image est collée depuis Paint Brush dans le presse-papiers.
// Le contenu du presse-papiers est collé dans le champ.
// Le serveur associé est Paint Brush.
OLEPaste(OLE_OLE1)
OLESave(OLE_OLE1, "OBJET1.OLE")
Syntax
<Result> = OLEPaste(<OLE control>)
<Result>: Boolean
  • True if the object was pasted,
  • False if a problem occurred.
<OLE control>: Control name
Name of OLE control that will receive the OLE object. If the control contained an object, this object is replaced with the new object. If this parameter corresponds to an empty string (""), the control used will be the control to which the current event belongs.
Remarks

Clipboard content

  • The clipboard content can be in text, graphic or binary format.
  • The clipboard content was initialized by OLECopy, via an editor option or via a copy command in the clipboard.

Miscellaneous

  • Only OLE version 1 is supported.
  • The object can be saved by OLESave.
Component: wd300ole.dll
See also
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help