The SAS Output Delivery System and reporting techniques

links with PDF destination

Reply
N/A
Posts: 0

links with PDF destination

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
SAS Super FREQ
Posts: 8,864

Re: links with ODS destination

Posted in reply to deleted_user
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
N/A
Posts: 0

Re: links with ODS destination

Posted in reply to Cynthia_sas
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.
SAS Employee
Posts: 50

Re: links with ODS destination

Posted in reply to deleted_user
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
Ask a Question
Discussion stats
  • 3 replies
  • 148 views
  • 0 likes
  • 3 in conversation