Adding Graphics to PROC REPORT Tables

Changing fonts and colors goes a long way toward livening up your output, and adding graphics takes your results to a new level. This example shows how to add a heading with a graphic to your PROC REPORT results.

The first thing you need to do is set up the heading. This is done with a COMPUTE BEFORE _PAGE_ statement and a LINE statement. This action adds a new row to the top of the table. The new row contains the text given in the LINE statement, as shown in Figure 19.11. Unfortunately, the row is created using the Sasweb table cell style attributes, which makes the title rather faint in appearance.

ODS HTML BODY='graphic.html' STYLE=sasweb; proc report data=furniture nowd; column Type Material Price; define ...

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.