PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Clipboard content
  • 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
OLEPaste (Function)
In French: OLEColle
Pastes the content of Windows clipboard into an OLE control.
Note: If the clipboard content was created on an OLE server, this server 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
// The image section is pasted from Paint Brush into the clipboard.
// The clipboard content is pasted into the control.
// The associated server is Paint Brush.
OLEPaste(OLE_OLE1)
OLESave(OLE_OLE1, "OBJECT1.OLE")
Syntax
<Result> = OLEPaste(<Control Name>)
<Result>: Boolean
  • True if the object was pasted,
  • False if a problem occurred.
<Control Name>: Character string (with or without quotes)
Name of OLE control that will receive the OLE object. If the control contained an object, this object is replaced by the new object. If this parameter corresponds to an empty string (""), the control to which the current process belongs will be used.
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.

Various

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