DR PRINT

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

version 6.0


DR PRINT (area; message{; printDialog})

ParameterTypeDescription
areaLongint4D Draw area
messageInteger0 = Message off, 1 = Message on
printDialogInteger0 = Without dialog box, 1 = With dialog box

Description

The command DR PRINT prints the document in area. Calling DR PRINT performs a function similar to choosing Print from the File menu, except that the Print Setup dialog box is not presented to the user. To display the Print Setup dialog box before printing, use DR DO COMMAND.

If message equals 1, 4D Draw displays a dialog box that allows the user to cancel printing. If the user cancels printing, DR Error returns error number 55.

If message equals 0, the dialog box is not displayed and the user cannot cancel printing.

If the optional printDialog parameter equals 0, the standard Print File dialog box does not appear and the print job begins immediately.

If printDialog equals 1, the standard Print File dialog box appears.

Example

The following example creates an offscreen area, draws some objects, and prints the area:

   $Area := DR New offscreen area
   ... 
      `Do some drawing here
   DR PRINT($Area;0)
      `Print with messages off
   DR DELETE OFFSCREEN AREA($Area)
      `Always delete offscreen areas when 
      `you are done with them

See Also

DR DO COMMAND, DR SET DOCUMENT SIZE.


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