SET PRINT PREVIEW

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 2004.5 (Modified)


SET PRINT PREVIEW (preview)

ParameterTypeDescription
previewBooleanPreview on screen (TRUE), or
No preview (FALSE)

Description

SET PRINT PREVIEW allows you to programmatically check or uncheck the Preview on Screen option of the Print dialog box. If you pass TRUE in preview, Preview on Screen will be checked, if you pass FALSE in preview , Preview on Screen will be unchecked. This setting is local to a process and does not affect the printing of other processes or users.

Example

The following example turns on the Preview on Screen option to display the results of a query on screen, and then turns it off.

   QUERY([Customers]) 
   If (OK=1) 
      SET PRINT PREVIEW (True) 
      PRINT SELECTION ([Customers] ; *) 
      SET PRINT PREVIEW (False) 
   End if

See Also

PRINT RECORD, PRINT SELECTION, PRINT SETTINGS.


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