Usage Note 23327: How can I zoom the contents of the HTML file I am creating with ODS?
There are a few ways to zoom the HTML file generated with ODS, but the method below uses JavaScript with the Onclick method. The Onclick method uses the Zoom style property with a value for the zoom. This can be a percentage or a unit of measure. The Onclick function is added to the <body> tag, so if you click anywhere on the HTML file, the text is enlarged according to the value supplied. The Ondbclick method allows you to double click on the HTML file and take the zoom to another percentage such as the normal 100%. View output.
proc template;
define style styles.zoom;
parent=styles.default;
style body from body /
tagattr="onclick=this.style.zoom='100%'
ondblclick=this.style.zoom='200%'";
end;
run;
ods html file='temp.html' style=styles.zoom;
proc print data=sashelp.class;
run;
ods html close;
See also the full PROC TEMPLATE FAQ and Concepts.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Programming ==> JavaScript
|
| Date Modified: | 2005-03-08 13:21:59 |
| Date Created: | 2003-08-07 15:16:35 |