ODS graphics in activeX

0

Using ActiveX in SAS graphics provides users with more functionality, options, and pretty colors than Jpeg, gif, etc (check out these examples). The issue is that ActiveX requires a device driver installed on the viewing machine, similar to Flash. In SAS 9.2, the sasgraph.exe is available within the SASWEB component deployed on the web application server. Therefore all that is required is the use of the codebase option.

In SAS Stored Processes, using this codebase option can be implemented via the ods html body no_top_matter and no_bottom_matter mechanisms. I've used this method since '05 (probably a reason I started the blog), check out the oldie but goodie: https://blogs.sas.com/content/bi/2005/10/14/converting-sasintrnet-into-sas-stored-processes/

Another option is to specify the codebase= option within the SAS Stored Process Macro '_ODSOptions'.
My recommendation is to include the following two lines before the %stpbegin;

%global _odsoptions;
%let _odsoptions=codebase="/sasweb/graph/sasgraph.exe";

Then you can utilize the goptions device=activex; setting.
Any users who do not have the appropriate driver will be prompted to install it.

Reference: http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#/documentation/cdl/en/graphref/63022/HTML/default/a002601885.htm

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

Comments are closed.

Back to Top