Selecting a printer

 

Transactions are available for requesting and selecting the current printer.

To request the current printer name, driver, and device:

· Use the GetPrinterName transaction. It has no parameters.

To request a list of all available printer names:

· Use the GetPrinterNames transaction. It has no parameters.

To specify the current printer:

· Use the SetPrinterName transaction. As parameters, use one of the groups of strings returned by GetPrinterNames.

The specified printer is used for subsequent print requests.

See also