Ole4D Methods

OCScrToFile(p_AreaVar;p_BMPPath)


This command can be used to save the image of the plug-in area into a BMP file.
In case you want to save an image of the object as it appears in inactive state, you should use the OCImgToFile command.


Parameters

Parameter Type   Description
p_AreaVar Longint  -> Variable of the plug-in area.
p_BMPPath Text -> Path of the file where the BMP image will be saved.


Return Values
0 – The method call was successful.
If the method call was not successful the return value is non zero. For more information call OCLastError.

Remarks
The area must contain an Ole object at the time this function is called. If no object is associated with the area calling this function was no effect.
If another window is above the plug-in area, the overlapped area of this window is captured in the image also.

See Also
OCImgToFile