4D v13

PV Get print property

Home

 
4D View v13
PV Get print property

PV Get print property 


 

PV Get print property ( area ; property ; value2 ) -> Function result 
Parameter Type   Description
area  Longint in 4D View area
property  Longint in Property number
value2  String in Additional property value
Function result  Longint in Property value

The PV Get print property command returns the current value of the property for the specified 4D View area. The optional value2 parameter can return additional information with certain print properties.

Use the PV Print properties constants to define the property parameter. For more information about these constants, see the description of the PV SET PRINT PROPERTY command.

Note: The four constants starting with "pv print dead..." are read-only.

Example  

We want to know the actual printable surface:

 C_LONGINT($paperWidth;$paperHeight)
 C_LONGINT($bottomMargin;$topMargin;$rightMargin;$leftMargin)
 C_LONGINT($usableWidth;$usableHeight)
 
 $paperWidth:=PV Get print property(area;pv print paper width)
 $paperHeight:=PV Get print property(area;pv print paper height)
 
 $bottomMargin:=PV Get print property(area;pv print dead bottom margin)
 $topMargin:=PV Get print property(area;pv print dead top margin)
 $rightMargin:=PV Get print property(area;pv print dead right margin)
 $leftMargin:=PV Get print property(area;pv print dead left margin)
 
 $usableWidth:=$paperWidth-($rightMargin+$leftMargin)
 $usableHeight:=$paperHeight-($topMargin+$bottomMargin)

 
PROPERTIES 

Product: 4D
Theme: PV Printing
Number: 15808

 
INDEX

Alphabetical list of commands

 
HISTORY 

Modified: 4D View 2004.1

 
SEE ALSO 

PV SET PRINT PROPERTY