BookmarkSubscribeRSS Feed
deleted_user
Not applicable
is it possible to create drill-down links with the PDF destination. with the HTML destination, you simply use the html variable in an annotate data set and SAS generates an image map with the hotspots defined. i need the whole chart to lilnk to an excel workbook or a folder on a network drive.

thanks,
-richard typed the general ODS destination rather than the specific PDF destination.

Message was edited by: RichardK
3 REPLIES 3
Cynthia_sas
Diamond | Level 26
Hi:
If you search support.sas.com for some examples, there are different ways to do it, depending on the device drivers you want to use:
http://support.sas.com/documentation/cdl/en/graphref/59607/HTML/default/a002152030.htm (Java & ActiveX)
http://www2.sas.com/proceedings/sugi28/149-28.pdf (Java, ActX, plus HTML= with SAS/Graph)

To find out how to drill down to an Excel Workbook instead of an HTML page, you might with to work with Tech Support to make sure that you have your link to Excel built correctly.

cynthia
deleted_user
Not applicable
sorry about the confusion...i wanted to ask about linking within PDF destinations.

thanks for the links; i briefly looked into the java/activex methods, but those don't seem to support direct printing (file > print). the final ODS destination *must* allow printing directly from the host application.

thanks again.
ScottH_SAS
SAS Employee
Just want to make sure I fully understand the question. You want to link from a pdf file to a webpage for example?

Links are used within PDF. Here is a short example of creating a mail link and and a http link.

%let emails=test@test.com;

%put %length(&emails);

ods listing close;
ods path sashelp.tmplmst(read);
ods escapechar="^";

ods pdf file='pdflink.pdf';

title1 "^S={url='http://www.sas.com'}Title1: Click to go to SAS web site";
title2 "^S={url='mailto:&emails'}Title2: list of email addresses";
proc print data=sashelp.class;
run;

ods pdf close;

Let me know if you need more assistance. You can send me some sample source code if you want at ODS@sas.com.

And as always Technical Support is great for questions like this!

Thanks!
Scott

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1396 views
  • 0 likes
  • 3 in conversation