GET PRINTABLE AREA

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.8.1


GET PRINTABLE AREA (height{; width})

ParameterTypeDescription
heightNumberHeight of printable area
widthNumberWidth 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.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next