version 2004 (Modified)
DR EXPERT MODE (area; mode)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| mode | Integer | 1=Expert mode On, 0=Expert mode Off, | |
| 666=Print one job mode On, 667=Print one job mode Off |
Description
The DR EXPERT MODE command allows turning special modes on or off in the 4D Draw area for the current session: expert mode and "print one job" mode.
Expert Mode
When 4D Draw is in expert mode, certain items on 4D Draw menus may be disabled. When expert mode is invoked, the menu items previously specified with DR EXPERT COMMAND are disabled.
If mode equals 1, expert mode is invoked.
If mode equals 0, expert mode is off (standard).
"Print one job" Mode
When this mode is enabled, 4D Draw stores all the print requests in a temporary file on disk. The documents will only be sent to the printer when "print one job" mode has been disabled (using value 667). This lets you make sure that all the documents will be printed in a single print job. This is especially useful when printing PDF documents.
To enable "print one job" mode, pass 666 in the mode parameter,
To disable this mode (default behavior), pass 667 in the mode parameter.
Examples
(1) See the example for DR EXPERT COMMAND.
(2) Here is a typical example for enabling "print one job" mode:
$Area:=DR New offscreen area DR EXPORT MODE($Area;666) ALL RECORDS([MyTable3]) For($i;1;Records in selection([MyTable3])) DR AREA TO FIELD($Area;3;4) DR PRINT($Area;0) NEXT RECORD([MyTable3]) End for DR EXPORT MODE($Area;667) DR DELETE OFFSCREEN AREA($Area)
See Also