The SAS Output Delivery System and reporting techniques

Hyperlink and ODS PowerPoint

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

Hyperlink and ODS PowerPoint

Hello, 

I am outputting my proc report tables using ods PowerPoint. However because some of the tables can be quite large, I am limiting the output to only 10 rows for the PowerPoint presentation and creating a pdf with the additional rows. With the PowerPoint slide, I am trying to put a hyperlink on the footnote that notes that the table only contains the first 10 observations and that the additional can be found within the pdf (hyperlinking the pdf with the additional data). The problem that I am encountering is when i output the table with the footnote to the PowerPoint. The hyperlink disappears. I have attached the code that I am using for the footnote and I have already created the directory. I'm wondering whether I am unable to hyperlink footnotes in this manner because I am outputting to PowerPoint. Any insight is much appreciated. 

footnote3 j=left height=8pt color=black "<span> <a href='../Mathematics_mid_performanceK5.pdf'> Table contains data from the first 10 schools. Additional schools data can be found in 'Mathematics: Mid-Performance (K.5)</a>";

Accepted Solutions
Solution
‎12-08-2015 01:11 PM
Super Contributor
Posts: 394

Re: Hyperlink and ODS PowerPoint

Posted in reply to Amber1331

You're right. You can't insert an HTML hyperlink (or any HTML, for that matter) into a PowerPoint document. PowerPoint documents use a version of XML called PresentationML.

 

Instead, use the URL style attribute. The destination for PowerPoint interprets the attribute and inserts the necessary XML. Here's an example:

 

ods path (prepend) work.templat(update);
proc template;
   define style styles.mystyle;
      parent = styles.powerpointlight;
      class SystemFooter /
         url="http://www.sas.com";
   end;
run;

ods powerpoint file="ppurl.pptx" style=styles.mystyle;
footnote "My hyperlink";
proc print data=sashelp.class(obs=6);
run;
ods powerpoint close;

View solution in original post


All Replies
SAS Super FREQ
Posts: 8,862

Re: Hyperlink and ODS PowerPoint

Posted in reply to Amber1331
Hi:
I am not sure that hyperlinks in Powerpoint will use an HREF= reference. That would be a question for Tech Support.

cynthia
Solution
‎12-08-2015 01:11 PM
Super Contributor
Posts: 394

Re: Hyperlink and ODS PowerPoint

Posted in reply to Amber1331

You're right. You can't insert an HTML hyperlink (or any HTML, for that matter) into a PowerPoint document. PowerPoint documents use a version of XML called PresentationML.

 

Instead, use the URL style attribute. The destination for PowerPoint interprets the attribute and inserts the necessary XML. Here's an example:

 

ods path (prepend) work.templat(update);
proc template;
   define style styles.mystyle;
      parent = styles.powerpointlight;
      class SystemFooter /
         url="http://www.sas.com";
   end;
run;

ods powerpoint file="ppurl.pptx" style=styles.mystyle;
footnote "My hyperlink";
proc print data=sashelp.class(obs=6);
run;
ods powerpoint close;
🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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