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
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 789 views
  • 0 likes
  • 3 in conversation