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

# TPrinter.PageHeight

Height of the usable area on the selected paper size in "Dots"

## Declaration

Source position: printers.pas line 334

`public property TPrinter.PageHeight : Integer read GetPageHeight;`

## Description

PageHeight is a read-only Integer property which contains the usable height for the selected paper size as a number of "Dots" for the native printer resolution.

PageHeight uses the PaperSize property to retrieve the work area for the selected paper size. The property value contains the difference between the Bottom and Top coordinates in the work area rectangle.

The property value is 0 (zero) when the Printers property is empty. You cannot access a selected paper size without a selected printer.

PageHeight is used to derive the page height in TPrinterCanvas when a TPrinter instance has been assigned.

## See also

TPrinter.PaperSize |  | Contains paper sizes available and/or selected for the print device.
TPrinter.Printers |  | Contains the names for devices that can be selected for printing.
TPaperSize.PaperRect |  | The physical and logical dimension rectangles for the paper size.
TPrinterCanvas.Printer |  | Device which uses the canvas to print a document.
TPrinterCanvas.PageHeight |  | Size of the printable area for the page on the vertical axis.
TPaperRect |  | Holds the physical and working dimensions for a paper size.