PV Get print property
version 2004.1 (Modified)
PV Get print property (area; property{; value2}) Longint
Parameter | Type | Description | |
area | Longint | 4D View area | |
property | Longint | Property number | |
value2 | String | Additional property value |
Function result Longint Property value
Description
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)
See Also
Constants
PV Print properties and PV Print values theme.