BookmarkSubscribeRSS Feed
S_E_N_T_H_I_L
Calcite | Level 5
Hi to all,
I generated one Word Document which contains the Hyperlinks to open the particular pages of PDF.
(FYI: Hyperlinks are generated by RTF Tags).
When I converted that file (doc) to PDF by ‘PRINT’ options, I can’t get those hyperlinks. I believe this was happened due to ‘RTF Tags’. Since RTF tags are not worked in PDF.

Any one can help to resolve this.

Thanks in Advance.

Regards,
S E N T H I L
3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
I noticed that you also posted this question in the Microsoft Office forum. This suggested method for setting hyperlinks was posted there:
http://support.sas.com/forums/thread.jspa?threadID=7725&tstart=0

In addition to that method, (which shows a URL= style override being used in a SAS TITLE statement), you can set a URL based on a variable's value, as shown in the program below.

cynthia

[pre]
proc format;
value $gend 'M' = 'http://www.google.com'
'F' = 'http://www.weather.com';
run;

title; footnote;
options nodate nonumber;
ods listing close;

ods pdf file="c:\temp\show_url.pdf" notoc;
ods escapechar="^";

proc print data=sashelp.class;
title 'Use URL in variable cells based on variable value';
var name age height;
var sex / style(data)={url=$gend.};
run;

ods pdf close;
[/pre]
S_E_N_T_H_I_L
Calcite | Level 5
Hi,

Thanks for your response.

Already I have tried this method. But it not meet the following(MY) situations,

1. More than one hyperlink in specified cell
2. Hyperlink should be present in the specified text.., not for whole cell

Help to resolve this.

Thanks & Regards,
S E N T H I L
Cynthia_sas
SAS Super FREQ
Hi:
As Scott already replied to your previous posting....you can only have one hyperlink per cell. And the hyperlink attaches to the contents of the whole cell. If you have an Adobe product, can you put multiple hyperlinks in a single table cell??? And, even if it is possible with an Adobe product, you can't do everything with SAS that you can do with Adobe when you create a PDF file.

cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2218 views
  • 0 likes
  • 2 in conversation