[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 262

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: Please note: 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

  

DefaultPaperName - the default name for this size of paper.

TPaperSize.DefaultPapers

  

Indicates if default paper sizes have been defined and added to SupportedPapers.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.