PRINTWINDOW

Top  Previous  Next

Syntax

PRINTWINDOW(win as WINDOW)

Description

Opens the standard printer dialog and sends the contents of the window to the selected printer. Output is properly scaled and sized for both portrait and landscape modes.

Parameters

win - Window to print

Return value

None

Remarks

For a window created with the @NOAUTODRAW style drawing in response to the @IDPAINT message is redirected to the printer.

See Also: OPENPRINTER, PRTDIALOG

Example usage

PRINTWINDOW win