XPRINT GET CANVAS statement  

Purpose

Retrieves the writable size of the attached host printer.

Syntax

XPRINT GET CANVAS TO WidthVar!, HeightVar!

Function Form:

WidthVar!  = XPRINT(CANVAS.X)

HeightVar! = XPRINT(CANVAS.Y)

Remarks

XPRINT GET CANVAS retrieves the logical size of the client area (printable area) for the attached host printer.  This is the size of the page, minus the unprintable margins, without any reductions for a CLIP area.  The size is specified in Page Units, so it could return scaled values if they were applied with XPRINT SCALE. This is very similar to XPRINT GET CLIENT, with the single exception that scaled values (set by XPRINT SCALE) are returned if they have been utilized.  If executed without a host printer attached, error 57 is generated.

See also

XPRINT GET CLIENT, XPRINT GET CLIP, XPRINT GET SIZE, XPRINT GET SCALE, XPRINT SCALE