PRINT Method
Takes a screen shot of the Window and prints it
Description:
This Method can be used to take a screen shot of a specified Window and send that to the printer. The screen shot is not saved
Syntax:
<cWindowName>.PRINT [ ( <lPreview>, <lDialog>, <nRow>, <nCol>, <nWidth>, <nHeight> ) ]
Parameters:
The following optional parameters can be used;
<lPreview> - Defines if a preview should be displayed before printing
<lDialog> - Defines if a Windows print dialog should be displayed for user interaction
<nRow> - Sets the row number to capture from (default is 0)
<nCol> - Sets the column number to capture from (default is 0)
<nWidth> - Sets the width to capture (default is the width of the Window client work area)
<nHeight> - Sets the height to capture (default is the height of the Window client work area)
Valid For Use With:
This command can be used for all definable Window types
Notes:
Note: A number of issues have been found when testing this Method. Specifically, if any (or all) of parameters are used, the program files to compile with a syntax error
No definitive answers were found when researching this issue, however, an alternative was found that does accept and work with the parameters detailed above
PRINTWINDOW() is a "hidden" HMG Function that did not appear to have been documented anywhere previously
Therefore, it is advisable to use this Function instead of the PRINT Method
A reference to the PRINT Method can be found in the i_UsrSOOP.ch file
The original version of the help file for this item can be viewed here