By default, windows are printed using the global printer device. This is initialized to the default Windows printer or the MapInfo Pro preferred printer, depending on how the user has set preferences. Using the Name clause an application, workspace, or the MapBasic window can override the printer preferences for an individual document. Several settings for the printer can also be controlled by using additional command clauses. Also, when the printer settings are changed through the user interface, appropriate MapBasic commands are generated internally. These overrides are saved with the workspace commands for the affected windows, so they will be reapplied when the workspace is reopened. An override can be removed from a window by running a Set Window Printer Default command.
If Scale Patterns is set to On, fill patterns are scaled based on the ratio of the output device's resolution to the screen resolution.
Attribute parameters, WIN_INFO_PRINTER_NAME (21), WIN_INFO_PRINTER_ORIENT (22) or WIN_INFO_PRINTER_COPIES (23), are also returned with WindowInfo( ) function.
Example
Set Window frontwindow( )
Printer Name "\\Discovery\HP 2500CP"
Orientation Portrait
Copies 10