Sign in Join
FPDoc Onlineexperiment

TPrinter.DoGetPaperName function

Member of TPrinterprotectedIn unit Printers

Performs action needed to get the selected paper name for the current printer.

Declaration

pascal
function DoGetPaperName: string; virtual

Function result

Name of the paper selected for the current printer.

Description

DoGetPaperName is a virtual String function which performs action needed to get the selected paper name for the current printer. DoGetPaperName is called when the value for the TPaperSize.PaperName property in the printer is read.

In TPrinter, DoGetPaperName always returns an empty string (''). It must be overridden in a descendent class to perform 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.