Sign in Join
FPDoc Onlineexperiment

TPrinter.PrinterName property

Member of TPrinterpublicIn unit Printers

Name for the selected print device.

Declaration

pascal
property PrinterName: string read GetPrinterName;

Description

PrinterName is a read-only String property which contains the name for the currently selected print device. The property value is retrieved from Printers using the value in PrinterIndex. When PrinterIndex contains a negative value, an empty string ( '') is returned as the value for the property.

Use SetPrinter to select a print device with a given name in Printers. Or, assign a new value to the PrinterIndex property.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.