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>";
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;
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;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: