BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

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;
1 REPLY 1
ghosh
Barite | Level 11

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

 

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1939 views
  • 0 likes
  • 2 in conversation