4D v14.3GET PRINTABLE AREA |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
GET PRINTABLE AREA
|
GET PRINTABLE AREA ( height {; width} ) | ||||||||
Parameter | Type | Description | ||||||
height | Longint |
![]() |
Height of printable area | |||||
width | Longint |
![]() |
Width of printable area | |||||
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:
SET PRINTABLE MARGIN(0;0;0;0) ` Set the paper margin
GET PRINTABLE AREA(hPaper;wPaper) ` Paper size
Product: 4D
Theme: Printing
Number:
703
Created: 4D v6.8.1
GET PRINTABLE MARGIN
Print form
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)