Creating RTF Output: Graphs as ActiveX

Adding a graph to your RTF output enables you to create impressive memos and reports. However, adding an interactive graph to a word processor document is even more impressive. This enables the readers of your memo or report to modify the graph to suit their needs.

The code for ActiveX output for the RTF destination is simple. You use the same ODS RTF statements as with any other procedure. Then you need to add the DEVICE=ACTIVEX option to your GOPTIONS statement.

ODS RTF FILE='ActiveXPlot.rtf' STYLE=ANALYSIS;
GOPTIONS DEVICE=ACTIVEX;
title 'Movie Plots';
title2 'Ticket Sales by Theme';
proc gplot data=MoviePlots;
   plot Theaters*TicketsSold=Theme;
run; quit;
ODS RTF CLOSE;

When you open your RTF document, ...

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.