Ole4D Methods

OCImgToFile(p_AreaVar;p_BMPPath)


This command saves into a BMP file the image of the object as it appears when the object is deactivated.
It doesn't save the currently displayed image in the OLE object, but the image displayed by the object when it is deactivated.
If you want to make a screenshot of the plug-in area you should use instead the OCScrToFile 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 returns an error.
Not all objects generate an image when they are deactivated.

See Also
OCScrToFile