Prints the contents of a window or application document.
|name||The name of a window (GUI environments only) or application document.|
If name identifies a window, the window must be open and activated. The visible portion of the window is sent to the current output destination as a bitmap. Bitmap output can be produced in a GUI environment only.
If name identifies an application document, the application document is sent to the current output destination as a text file.