PrintFormPict Method (WINDOW)
PLBCMP GUI Only
The PrintFormPict method outputs a screenshot of a WINDOW to the current default printer. The method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A WINDOW object that is accessed.
return
Optional. A Numeric Variable that receives the result of the method.
hwnd
Optional. A Numeric Variable or decimal number that is a GUI object control handle.
Flags Affected: EOS, OVER, ZERO
Note the following:
If the {return} value is zero, the PrintFormPict method executed successfully. When a non-zero value is returned, the method failed to execute.
The OVER flag is set TRUE if the {return} numeric variable is too small to receive the return value.
The EOS flag is always set to be FALSE.
If the {hwnd} value is zero, this method outputs a screenshot of the desktop. If the {hwnd} is not specified, the hwnd of the WINDOW object executing the method is used. If the {hwnd} is non-zero, the value must be a valid handle of a GUI object as determined by the HWND property.
This method does nothing when using the PWS server and the {return} value is always zero.
See Also: Method Syntax, WINDOW Methods
![]() |