4D View v14PV Get print property |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D View v14
PV Get print property
|
PV Get print property ( area ; property ; value2 ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D View area | |||||
property | Longint |
![]() |
Property number | |||||
value2 | String |
![]() |
Additional property value | |||||
Function result | Longint |
![]() |
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.
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)
Product: 4D View
Theme: PV Printing
Number:
15808
Modified: 4D View 2004.1
4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)