BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Amber1331
Calcite | Level 5

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>";
1 ACCEPTED SOLUTION

Accepted Solutions
Tim_SAS
Barite | Level 11

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

2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
I am not sure that hyperlinks in Powerpoint will use an HREF= reference. That would be a question for Tech Support.

cynthia
Tim_SAS
Barite | Level 11

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;

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
  • 2 replies
  • 1236 views
  • 0 likes
  • 3 in conversation