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

# TPrinter.DoGetDefaultPaperName

Performs actions needed to get the name for the default paper on the print device.

## Declaration

Source position: printers.pas line 284

`protected function TPrinter.DoGetDefaultPaperName: string; virtual;`

## Function result

Name for the default paper on the selected print device.

## Description

DoGetDefaultPaperName is a virtual String function which performs action needed to get the name for the default paper on the selected print device. The return value contains the name for the default paper, such as: "Letter", "Legal", or "A4". DoGetDefaultPaperName is called when the value for the TPaperSize.DefaultPaperName property is read.

Remark: | In TPrinter, DoGetDefaultPaperName always returns an empty string (''). It must be overridden in a descendent class to perform the actions needed for the operating system / widgetset / printer-related technology used in the implementation.

## See also

TPrinter.PaperSize |  | Contains paper sizes available and/or selected for the print device.
TPaperSize.DefaultPaperName |  | The default paper name used when not selected or available in the printer device.
TPaperSize.DefaultPapers |  | Indicates if default paper sizes have been defined and added to SupportedPapers.