Sign in Join
FPDoc Onlineexperiment

TPrinter.DoGetDefaultPaperName function

Member of TPrinterprotectedIn unit Printers

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

Declaration

pascal
function 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.

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

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