Printing and Routing Output |
Previewing Output Using Universal Printing |
With Universal Printing, you can preview your output before you send it to a printer, plotter, or external file. To preview your output, you first need to define a previewer for your system. For more information about Universal Printing, see SAS Language Reference: Concepts.
Previewing Output from within SAS/AF Applications |
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");
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.