Installing the SAS/GRAPH ActiveX Control

About the ActiveX Control Installation

The SAS/GRAPH ActiveX Control is installed silently when you install SAS/GRAPH. When you create a Web presentation using the SAS/GRAPH ACTIVEX device, by default, the resulting presentation is configured to prompt users to install the SAS/GRAPH ActiveX Control if it is not already installed. The SAS/GRAPH software configures the presentation by setting the CODEBASE= option in the HTML file as shown in the following example:
CODEBASE="http://www2.sas.com/codebase/graph/v93/sasgraph.exe#version=9,3"
No files are installed without the user's permission. Your users can refuse installation by refusing the licensing agreement at the beginning of the installation process. Also note that the installation program does not run if the control has already been installed. You can customize the installation process as described in Customizing the SAS/GRAPH ActiveX Control Installation Process.

Customizing the SAS/GRAPH ActiveX Control Installation Process

Rather than using the default installation process, you can customize the installation by downloading the installation program and running it manually on your local computers. You can also make the installation program available to all of your users on your local network for installation on an as-needed basis. To download the installation program, do the following:
  1. Open the SAS All Downloads page in your Web browser:
  2. On the right-hand side of the page, if you are not already logged in, enter your e-mail address into the E-mail field and your password into the Password field, and then click LOG IN.
    Note: You must log in to download files. If you do not have an account, click Sign up now below the LOG IN button to create an account.
  3. In the SAS System Software Products category of the All Downloads Sorted by Product Category list, click SAS/GRAPH Software .
  4. In the SAS/GRAPH Software list, click SAS/GRAPH Control for ActiveX under the appropriate SAS version.
  5. In the SAS/GRAPH Control for ActiveX download table, click Request Download for your Windows platform. The License Agreement page appears.
  6. On the License Agreement page, read the license agreement, and then click I Accept. The Downloads page appears.
    Note: If you do not want to accept the license agreement, click Do Not Accept to cancel the download.
  7. In the table in task 1, click Download , and then select a location on your computer for the file. This downloads a ZIP file to your computer.
  8. Extract the ZIP file that you downloaded. This extracts file sasgraph.exe.
To manually install the SAS/GRAPH ActiveX on a local computer, run the installation program (sasgraph.exe) and follow the installation prompts. The installation program installs the SAS/GRAPH ActiveX Control files in the folder shown in the following table.
Computer Platform
ActiveX Control Platform
Installation Folder
Win32
Win32
C:\Program Files\SASHome\Graph\V9
Win64
Win32
C:\Program Files\SASHome\x86\Graph\V9
Win64
C:\Program Files\SASHome\Graph\V9
Installation requires eight megabytes of disk space.
If you want to configure your SAS/GRAPH ActiveX Web presentations to install the SAS/GRAPH ActiveX Control as-needed from your local network rather than the SAS Web site, copy the installation program to a shared location on your network. The shared location can be a shared directory or public folder on your file system, or a Web server on your network. After you have made the installation program available to your users, you can then configure your new and existing ActiveX presentations to install the SAS/GRAPH ActiveX Control from your local network. See Configuring Your ActiveX Presentation to Install the SAS/GRAPH ActiveX Control from Your Local Network and Configuring an Existing ActiveX Presentation to Install the SAS/GRAPH ActiveX Control from Your Local Network.

Configuring Your ActiveX Presentation to Install the SAS/GRAPH ActiveX Control from Your Local Network

To configure a SAS/GRAPH ActiveX Web presentation to install the SAS/GRAPH ActiveX control from your local network, do the following:
  1. If you have not already done so, download the SAS/GRAPH ActiveX Control installation program and copy it to a shared location as described in Customizing the SAS/GRAPH ActiveX Control Installation Process.
  2. In the SAS program for your presentation, use the CODEBASE= option with the ODS HTML statement to configure the HTML output file to reference the installation program when the HTML file is opened. For example:
    ods html body="myGraph.html"
       codebase="http://www.ourco.com/sasweb/graph/sasgraph.exe#version=9,3";
    If the installation program is stored on your file system rather than a Web server, then you can use a file specification as the value of the CODEBASE attribute. For example:
    ods html body="myGraph.html"
       codebase="/sasweb/graph/sasgraph.exe#version=9,3";
  3. (Optional) On a local computer that does not have SAS or the SAS/GRAPH ActiveX Control installed, open your Web presentation and verify the following:
    • A prompt to install the SAS/GRAPH ActiveX control appears.
    • The installation is successful.
    • The presentation displays properly.
    Note: If you want to remove the SAS/GRAPH ActiveX Control after the test, follow the instructions in Uninstalling the SAS/GRAPH ActiveX Control.

Configuring an Existing ActiveX Presentation to Install the SAS/GRAPH ActiveX Control from Your Local Network

To configure an existing SAS/GRAPH ActiveX Web presentation so that it installs the SAS/GRAPH ActiveX Control from your local network, do the following:
  1. If you have not already done so, download the SAS/GRAPH ActiveX Control installation program and copy it to a shared location as described in Customizing the SAS/GRAPH ActiveX Control Installation Process.
  2. In a text editor, open the initial HTML file of your Web presentation.
  3. In the OBJECT tag, insert the CODEBASE= attribute. The attribute references the location of the installation program. The following CODEBASE value references a public directory:
    CODEBASE="/sasweb/graph/sasgraph.exe#version=9,3"
    If the installation program is stored on a Web server, use an HTTP reference. For example:
    CODEBASE="http://www.ourco.com/sasweb/graph/sasgraph.exe#version=9,3"
  4. Save the HTML file and close the editor.
  5. (Optional) On a local computer that does not have SAS or the SAS/GRAPH ActiveX Control installed, open the modified Web presentation and verify the following:
    • A prompt to install the SAS/GRAPH ActiveX control appears.
    • The installation is successful.
    • The presentation displays properly.
    Note: If you want to remove the SAS/GRAPH ActiveX Control after the test, follow the instructions in Uninstalling the SAS/GRAPH ActiveX Control.
With the file thus modified, displaying the HTML file gives users who need it the option of installing the control in the default location on their local computers.

Uninstalling the SAS/GRAPH ActiveX Control

If the SAS/GRAPH ActiveX Control was installed with the SAS/GRAPH software, you cannot manually uninstall the SAS/GRAPH ActiveX Control separately from the SAS/GRAPH software. In that case, to uninstall the SAS/GRAPH ActiveX Control, you must uninstall the SAS/GRAPH software. If you manually installed the SAS/GRAPH ActiveX Control, you can manually uninstall it.
To manually uninstall the SAS/GRAPH ActiveX Control on Windows XP:
  1. Open the Control Panel window by selecting Startthen selectSettingsthen selectControl Panel.
  2. Double-click Add or Remove Programs.
  3. Select SAS Graph ActiveX Control.
  4. Click Remove.
To manually uninstall the SAS/GRAPH ActiveX Control on Windows Vista:
  1. Open the Control Panel window by selecting Startthen selectControl Panel.
  2. In the Control Panel, under Programs, click Uninstall a program. A list of the installed programs is displayed.
  3. In the program list, select SAS Graph ActiveX Control, and then click Uninstall.