Adding Images to Printer Output (with Templates)

This technique is basically the same as the example shown for RTF output, except that you have a wider choice of graphics file types. The PROC TEMPLATE step is the same as in the RTF example. Just change the PARENT setting from the RTF style to the PRINTER style.

PROC TEMPLATE;
   DEFINE STYLE PrinterLogo;
   PARENT=Styles.Printer;
   CLASS body /
      preimage='corporatelogo.jpg';
   END;
RUN;

If you generate Printer output using the PrinterLogo style, you will see the other difference between RTF and Printer output. The style defined above creates the results shown in Figure 17.30. Here is the program:

ODS NOPROCTITLE; ODS PRINTER STYLE=PrinterLogo; proc means data=paints n mean std min max maxdec=2; title "October ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.