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

TPrinter.DoGetPaperName

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

Declaration

Source position: printers.pas line 285

protected function TPrinter.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.

Remark: 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

TPrinter.PaperSize

  

Contains paper sizes available and/or selected for the print device.

TPaperSize.PaperName

  

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


Version 3.2 Generated 2024-02-25 Home