[Overview][Types][Classes][Variables][Index] Reference for unit 'Printers' (#lcl)

TPaperSize.SupportedPapers

The list of supported paper names for the attached printer device.

Declaration

Source position: printers.pas line 208

public property TPaperSize.SupportedPapers : TStrings
  read GetSupportedPapers;

Description

SupportedPapers is a read-only TStrings property with the list of paper names available for the attached printer device. It contains the common names for the paper sizes, like: "Letter", "Legal", or "A4".

Values in the property are loaded when no existing entries are found, or when the selected printer device has been changed. The printer device is queried to get the supported paper names and sizes. It if does not return any values, the three (3) paper sizes mentioned above are added to the list of available paper sizes. The first value in the list is the default paper size, and the DefaultPapers property is set to True.

SupportedPapers is used to validate a new value assigned to the PaperName property. The new PaperName value must exist in SupportedPapers before it is applied to the printer device. It serves a similar purpose when a values is retrieved for the indexed PaperRectOf property.

See also

TPaperSize.PaperName

  

The name used for the paper size, like Legal or Letter.

TPaperSize.DefaultPaperName

  

The default paper name used when not selected or available in the printer device.

TPaperSize.PaperRect

  

The physical and logical dimension rectangles for the paper size.

TPaperSize.PaperRectOf

  

Gets the dimension for a supported paper with the specified name.

TPrinter.DoEnumPapers

  

Performs actions needed to get the supported papers for the print device.


Version 4.0 Generated 2025-05-03 Home