QR SET DOCUMENT PROPERTY

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2003


QR SET DOCUMENT PROPERTY (area; property; value)

ParameterTypeDescription
areaLongintReference of the area
propertyLongint1 = Printing dialog, 2 = Document unit
valueLongintValue for the property

Description

The QR SET DOCUMENT PROPERTY command allows you to display the printing dialog or to define the unit used for the document.

In property, you can pass the following constants, located in the QR Document properties constant theme:

ConstantValue
qr printing dialog1
qr unit2

If property equals 1, the command applies to the display of the print dialog.

- If value equals 1, the print dialog is displayed prior to printing.

- If value equals 0, the print dialog is not displayed prior to printing (default value).

If property equals 2, the command applies to the document unit.

- If value equals 0, the document unit is points.

- If value equals 1, the document unit is centimeters.

- If value equals 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 Get document property.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next