![]() | ![]() | ![]() | ![]() | ![]() |
If you copy and paste the ACTIVEX graph to another software product, such as Microsoft PowerPoint, you can paste the graph, but you will lose any titles and footnotes.
Beginning with the ActiveX graph control that is shipped with SAS® 9.2, you can now embed titles and footnotes into the graph output when using the ACTIVEX device driver with the ODS HTML statement. You can do this by adding special parameters to your ODS HTML statement instead of using SAS/GRAPH TITLE and FOOTNOTE statements.
Click the Full Code tab to view sample SAS® code that demonstrates this technique.
Note that you will need to install the SAS 9.2 ActiveX graph control or the SAS 9.3 ActiveX graph control in order to use the technique outlined in this sample. You can install the SAS 9.2 or the SAS 9.3 graph control even if you are still using SAS 9.1.3 when creating your ActiveX graphics output since the SAS 9.2 and SAS 9.3 ActiveX graph control is backwards compatible with output created with SAS 9.1.3.
To install the SAS 9.2 or 9.3 ActiveX graph control, first point your Web browser to:
Select SAS/GRAPH Software. Then install either the SAS 9.2 ActiveX graph control or the SAS 9.3 ActiveX graph control.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
/*
TITLECOUNT=value // number of title lines to display
TITLEn_VALUE=string // text value - "n" indicates the line #(0-3)
TITLEn_COLOR=color // text color
TITLEn_JUSTIFY=value // 1=center, 2=right, 3=left
TITLEn_FONTHTVALUE=size // font height in points
TITLEn_FONTBOLD=true|false // use bold font
TITLEn_FONTITALIC=true|false // use italic font
TITLEn_FONTNAME=name // font name
FOOTNOTECOUNT=value // number of footnote lines to display
FOOTNOTEn_VALUE=string // text value - "n" indicates the line #(0-1)
FOOTNOTEn_COLOR=color // text color
FOOTNOTEn_JUSTIFY=value // 1=center, 2=right, 3=left
FOOTNOTEn_FONTHTVALUE=size // font height in points
FOOTNOTEn_FONTBOLD=true|false // use bold font
FOOTNOTEn_FONTITALIC=true|false // use italic font
FOOTNOTEn_FONTNAME=name // font name
*/
data planets;
input Planet $ Distance;
datalines;
Mercury 43.4
Venus 68
Earth 94.5
Mars 155
Jupiter 508
Saturn 938
;
run;
title1;
goptions reset=goptions device=activex
cback=white border xpixels=600 ypixels=400;
/* This sample writes its output to C:\TEMP */
/* when run on the Windows operating system. */
/* Modify the destination on the FILENAME */
/* statement below if you want to write the */
/* output to a location other than C:\TEMP */
/* or if you are running on an operating */
/* system other than Windows. */
filename odsout 'c:\temp';
ods listing close;
ods html path=odsout file="g37311.html"
parameters=("TitleCount" = "2"
"FootnoteCount" = "1"
"Title0_Value" = "My First ActiveX Title"
"Title0_FontHTValue" = "12"
"Title0_Color" = "black"
"Title1_Value" = "My Second ActiveX Title"
"Title1_FontHTValue" = "12"
"Title1_Color" = "black"
"Footnote0_Value" = "My ActiveX Footnote"
"Footnote0_FontHTValue" = "12"
"Footnote0_FontBold" = "true");
pattern1 v=s c=vibg;
pattern2 v=s c=dabg;
pattern3 v=s c=mob;
pattern4 v=s c=deoy;
pattern5 v=s c=day;
pattern6 v=s c=grp;
proc gchart data=planets;
vbar planet / sumvar=distance
subgroup=planet
ascending
nolegend
sum;
run;
quit;
ods html close;
ods listing close;
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
This sample code produces HTML output. Click here to view the output.
| Type: | Sample |
| Date Modified: | 2009-10-15 10:00:31 |
| Date Created: | 2009-09-30 14:27:19 |
| Product Family | Product | Host | SAS Release | |
| Starting | Ending | |||
| SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |||
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |||
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |||
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |||
| Microsoft® Windows® for x64 | 9.2 TS1M0 | |||
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |||
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |||
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |||
| Microsoft Windows Server 2008 | 9.2 TS1M0 | |||
| Microsoft Windows XP Professional | 9.2 TS1M0 | |||
| Windows Vista | 9.2 TS1M0 | |||
| 64-bit Enabled AIX | 9.2 TS1M0 | |||
| 64-bit Enabled HP-UX | 9.2 TS1M0 | |||
| 64-bit Enabled Solaris | 9.2 TS1M0 | |||
| HP-UX IPF | 9.2 TS1M0 | |||
| Linux | 9.2 TS1M0 | |||
| Linux for x64 | 9.2 TS1M0 | |||
| OpenVMS on HP Integrity | 9.2 TS1M0 | |||
| Solaris for x64 | 9.2 TS1M0 | |||




