4D v16.3

QR SET DOCUMENT PROPERTY

Home

 
4D v16.3
QR SET DOCUMENT PROPERTY

QR SET DOCUMENT PROPERTY 


 

QR SET DOCUMENT PROPERTY ( area ; property ; value ) 
Parameter Type   Description
area  Longint in Reference of the area
property  Longint in 1 = Printing dialog, 2 = Document unit
value  Longint in Value for the property

The QR SET DOCUMENT PROPERTY command displays the printing dialog or sets the unit used for the document.

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

Constant Type Value Comment
qr printing dialog Longint 1 Display 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 unit Longint 2 Document 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 value in the  property or value parameter, the corresponding error (-9852 or -9853) is generated.



See also 

QR Get document property

 
PROPERTIES 

Product: 4D
Theme: Quick Report
Number: 772

This command modifies the Error system variable

 
HISTORY 

Created: 4D 2003

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)