Usage Note 23469: How can I provide an alternate version of ODS HTML output for printing?
For some documents you might want two versions -- one for viewing
in the HTML browser and one for printing.
For example, you want to specify exactly where the pages should
break, so you want to print an MS Word file
instead of the HTML file.
You could add a button on the HTML page that links to the Word file.
Or you could switch to it automatically by using the <LINK> tag.
With the following
example code,
when the reader selects Print
from the browser to print the page, the RTF file is printed.
ods rtf file='temp.rtf';
ods html file='temp.html'
headtext='<link rel=alternate media=print href="temp.rtf">';
proc print data=sashelp.class;
run;
ods _all_ 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: | System Administration ==> Printing SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML
|
| Date Modified: | 2003-12-23 16:11:33 |
| Date Created: | 2003-10-08 12:06:31 |