To preview output from
within a
SAS/AF application, use the DMPRTMODE and DMPRTPREVIEW commands
to turn on preview mode, print the output, open the
Print
Preview dialog box, and then turn preview mode off.
For example, the following code prints the GRAPH1 object using the
host drivers and displays it in the
Preview dialog box:
/* Turn on preview mode. */
CALL EXECCMDI ("DMPRTMODE PREVIEW");
/* Print the graph */
GRAPH1._PRINT_();
/* Open the Preview dialog box */
CALL EXECCMDI ("DMPRTPREVIEW");
/* Turn off preview mode */
CALL EXECCMDI ("DMPRTMODE NORMAL");