DefHeight, DefLeft, DefTop, DefWidth, Height, Left, Top, Width Properties (Printer)

Purpose

The Defxx properties return the printer's default left, top, height and width settings.

Syntax

Printer.DefHeight
Printer.DefLeft
Printer.DefTop
Printer.DefWidth

Printer.Height [ = single ]
Printer.Left [ = single ]
Printer.Top [ = single ]
Printer.Width [ = single ]

Description

The printable area of a page is returned in the DefHeight, DefLeft, DefTop, and DefWidth properties. The return value is of type Single.

By default, the DefHeight, DefLeft, DefTop, and DefWidth properties are identical to the Height, Left, Top, and Width properties. However the Height, Left, Top, and Width properties can be used to set the physical dimensions of the paper.

The coordinates are in ScaleMode units.

Example

Debug.Show

Trace Printer.ScaleMode

Trace Printer.DefLeft

Trace Printer.DefTop

Trace Printer.DefHeight

Trace Printer.DefWidth

Trace Printer.Left

Trace Printer.Top

Trace Printer.Height

Trace Printer.Width

See Also

Printer, ShowPrint, ShowPageSetup, Height, Left, Top, Width

{Created by Sjouke Hamstra; Last updated: 28/09/2014 by James Gaite}