Skip to main content
Version: Next

GET PRINTABLE AREA

GET PRINTABLE AREA ( height {; width} )

ParameterTypeDescription
heightIntegerHeight of printable area
widthIntegerWidth of printable area

Description

The GET PRINTABLE AREA command returns the size, in pixels, of the height and width parameters of the printable area. This size depends on the current printing parameters, the paper orientation, etc.

The sizes returned do not vary from one page to another (after a page break, for instance).

Associated with the Get printed height command, this command is useful for knowing the number of pixels available for printing or for centering an object on the page.

Note: For more information regarding Printing management and terminology in 4D, refer to the GET PRINTABLE MARGIN command description.

To know the total size of the page, you can:

  • either add the margins supplied by the GET PRINTABLE MARGIN command to the values returned by this command.
  • or use the following syntax:
 SET PRINTABLE MARGIN(0;0;0;0) // Set the paper margin
 GET PRINTABLE AREA(hPaper;wPaper) // Paper size

See also

GET PRINTABLE MARGIN
Print form

Properties

Command number703
Thread safe