Skip to main content
Version: 20 R7 BETA

QR Get document property

QR Get document property ( area ; property ) -> Function result

ParameterTypeDescription
areaIntegerReference of the area
propertyInteger1 = Print Dialog, 2 = Document unit
Function resultLongintValue for the property

This command is not thread-safe, it cannot be used in preemptive code.

Description

The QR Get document property command retrieves the display status for the print dialog box or the unit used for the document that are present in area.

In property, you can use the following constants, located in the QR Document Properties constant theme:

ConstantTypeValueComment
qr field separatorLongint3Character code of the field separator. Default value is the system variable FldDelimit (Tab by default).
qr printing dialogLongint1Display of the print dialog box:
If value = 0, the print dialog is not displayed prior to printing.If value = 1, the print dialog is displayed prior to printing (default value).
qr record separatorLongint4Character code of the record separator. Default value is the system variable RecDelimit (Carriage Return by default).
qr unitLongint2Document unit:
If value = 0, the document unit is points.If value = 1, the document unit is centimeters.If value = 2, the document unit is inches.

If you pass an invalid area number, the error -9850 will be generated.
If you pass an invalid property value, the error -9852 will be generated.

See also

QR SET DOCUMENT PROPERTY