Usage Note 56504: ODS PDF does not display a URL when inline style functions are used
The URL style attribute enables you to insert a URL within text in the non-Listing ODS destinations. In the PDF destination, the URL style attribute must be the first style attribute that is specified in the string of a cell, whether the cell is created by TEXT=, a TITLE statement, a FOOTNOTE statement, or in data. Please note that only one URL is permitted per cell.
The Full Code tab illustrates sample code in which the URL style attribute is specified first.
Operating System and Release Information
SAS System | Base SAS | 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 XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Windows Vista for x64 | 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 | |
*
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.
Because the URL attribute must be first, the following code creates a URL of the entire paragraph, but uses inline style commands to underline just the text "SAS Customer Support Site". Note the use of the CELLHEIGHT attribute to increase the height of the row, which allows the underline to be displayed. Both syntax methods for using inline style functions are used in the sample code: '^S={ }' and '^{style [ ]}'.
options orientation=portrait nodate nonumber;
title;
footnote;
ods escapechar="^";
ods pdf file="file.pdf" notoc;
proc odstext;
p "^S={URL='http://support.sas.com' linkcolor=white}Here's a URL link to the ^S={color=blue textdecoration=underline}SAS Customer Support site^S={}.Check it out!"
/ style={just=c cellheight=14pt};
run;
proc odstext;
p "^{style [url='http://support.sas.com' linkcolor=white]Here's a URL link to the ^{style [color=blue textdecoration=underline]SAS Customer Support site}}.Check it out!"
/ style={just=c cellheight=14pt};
run;
ods _all_ close;
Type: | Usage Note |
Priority: | medium |
Date Modified: | 2015-10-08 14:46:31 |
Date Created: | 2015-08-26 13:24:19 |