4D v13.4

GET PRINTABLE AREA

Home

 
4D v13.4
GET PRINTABLE AREA

GET PRINTABLE AREA 


 

GET PRINTABLE AREA ( height {; width} ) 
Parameter Type   Description
height  Longint in Height of printable area
width  Longint in 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:

  • 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

 
PROPERTIES 

Product: 4D
Theme: Printing
Number: 703

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D v6.8.1

 
SEE ALSO 

GET PRINTABLE MARGIN
Print form