Hi,
I'm wondering what I do wrong when trying to insert an image in the powerpoint.
Please note that I'm not looking for a picture I could enter as background for the slide but really inserting an image on the top.
In the code below, you can find both powerpoint where it is not working and pdf where it is working.
%let xxroot =C:/temp;
ods escapechar='^';
ods rtf(web) close;
ods powerpoint file="&xxroot./test.pptx";
*title '^{style [preimage="&xxroot./test.png"]}';
proc odstext;
p 'hello';
run;
ods text = '^{style [preimage="&xxroot./test.png"]}';
*proc odstext;
*p 'Bye' /style=[preimage="&xxroot./test.png"];
*run;
proc odstext;
p 'Bye';
run;
*title;
ods powerpoint close;
ods pdf file = "&xxroot./test2.pdf";
ods pdf text = '^{style [preimage="&xxroot./test.png"]}';
ods pdf close;
If you're inserting an image at the top you can use the technique shown here using a template.
https://support.sas.com/kb/53/334.html
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.