Generating Output for ActiveX

The SAS/GRAPH ActiveX Control displays interactive charts, maps, and plots. The following table lists the various ways that you can deliver ActiveX output to your audience.
Primary Delivery Choices for SAS/GRAPH ActiveX Control Output
Application
ODS Statement
Output File
Internet Explorer
ODS HTML
HTML
Microsoft Word
ODS RTF
Rich text format
Adobe Acrobat Reader
ODS PDF
Portable document format
Ghostview, and so on
ODS PS
PostScript format
Note: These choices also apply to the JAVA device.
Procedures and Statements That Generate Output for the SAS/GRAPH ActiveX Control lists the SAS/GRAPH procedures that generate output for ActiveX.
Follow these steps to generate a default Web presentation that runs the SAS/GRAPH ActiveX Control.
  1. Reset the graphics options and specify the ACTIVEX device:
    goptions reset=all device=activex;
  2. Close the current ODS HTML destination:
    ods html close;
  3. Open an ODS destination that is listed in Primary Delivery Choices for SAS/GRAPH ActiveX Control Output. Use the STYLE= option to specify an ODS style (see Using ODS Styles, Device Parameters, and Options), and use the PATH= and BODY= options to specify an output filename other than the default. For example:
    ods html path="." body="your_file.htm"
        style=analysis;
  4. Run a procedure or procedures that are supported by the ACTIVEX device (see Procedures and Statements That Generate Output for the SAS/GRAPH ActiveX Control):
    proc gchart data=sashelp.class;
       vbar sex / type=mean sumvar=height group=age subgroup=sex space=0;
    run;
    quit;
  5. Close the ODS destination that you opened in step 3 to close the option file, and then reopen the ODS HTML destination. For example:
    ods html close;
    ods html;
The preceding program assumes that your Web users have installed the SAS/GRAPH ActiveX Control in advance. If the SAS/GRAPH ActiveX Control is not already installed on a user's computer, your Web presentation automatically prompts the user to install the SAS/GRAPH ActiveX Control. For information about prompting new users to start the SAS/GRAPH ActiveX Control installation process, see Configuring Your ActiveX Presentation to Install the SAS/GRAPH ActiveX Control from Your Local Network. For further troubleshooting information, see Troubleshooting Web Output. For information about enhancing the default Web presentation, see Configuring Drill-Down Links with ACTIVEX .