PRINTWINDOW() Function
Captures the chosen Window to (optionally) preview, print or save it to the hard disk
Description:
This function enables the user to capture a screen shot of the Window and (optionally) preview, print or save it as a .PDF file
Syntax:
PRINTWINDOW( <cWindowName>, [ <lPreview> ], [ <lDialog> ], [ <nRow> ], [ <nCol> ], [ <nWidth> ], [ <nHeight> ] )
Parameters:
The following optional parameters can be used;
<cWindowName> - Defines the name of the Window to be printed
<lPreview> - Defines if a preview Window should be displayed. This defaults to a preview of the screen capture and includes options to print or save the output as a .PDF file
<lDialog> - Defines if a Windows printer system dialog should be displayed for the user to select a specific printer or change any of the print options such as page size
<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 function can be used on all definable and activated Window types
Notes:
Note: A number of issues have been found when testing the PRINT Method. Therefore, it is advisable to use this Function rather than the aforementioned Method
The source code for the PRINTWINDOW() Function can be found from line 6222 in the h_windows.prg file in the HMG Source folder
No help documentation was published with the original or subsequent releases of HMG