08-09-2014 03:15 PM
I understand that ODS POWERPOINT is very new and has some limitations until the next version comes out.
I've been scrapping the web looking for answers however there's not much to find, a formal document or two.
My question is on every power point slide is there a way to select a different style background:
define style styles.afgsc_title;
class body /
/*proc template for powerpoint background image for all other slides*/
define style styles.afgsc_slides;
class body /
ods powerpoint style=styles.afgsc_title layout=titleslide;
proc odstext; /*title slide*/
p "Working Group Tasks" / style=PresentationTitle
/****************at this point it, this proc odstext gets added to the above slide, but that's not what I want************/
ods powerpoint (sytle=styles.afgsc_slides);
p "The ODS Destination for PowerPoint" / style=PresentationTitle
p "SAS Global Forum 2013" / style=PresentationTitle2;
proc report data=sashelp.class;
column sex n;
define sex / group;
ods powerpoint close;
So, what'd I'd like this to do is:
1) Title slide with it's own background image and title text.
2) Next slide with it's own background image and seperate proc odstext
Is ods powerpoint have that 'next page' ability on odstext?
And, does anyone use a better way to output to Powerpoint, I've read some articles on DDE to export data, charts, etc, however it seems somewhat tedious, but more flexible.
08-09-2014 11:20 PM
That's a very interesting question. Usually, with a question like this, I ask myself can I do xyz in abc product when SAS is not in the mix? So I went to PowerPoint and I tried to make a PPT deck that had 1 background for 1 slide and a different background for the rest of the slides, and I don't see how to do that. I can select a blank presentation to start and then I can select Slide Master to apply a background, but in PPT, without SAS involved, the background style that I select applies to the whole presentation. I can't have one background on the title slide and a different background on the other slides. I suppose I can create my own theme, but that is within PPT, not within SAS.
So, my guess is that if you can't do it in PowerPoint -- just in PowerPoint -- by itself, then SAS can't do it either. But, ultimately, I think you have a question or two for Tech Support.
Also, the default for PROC ODSTEXT is for the PAGEBREAK option to be set to NO. Have you tried using PAGEBREAK=yes, as shown in the doc?
SAS(R) 9.4 Output Delivery System: Procedures Guide (ODSTEXT doc) Following the doc resulted in 2 slides when I ran the code below.
ods _all_ close;
title 'Using PROC ODSTEXT';
footnote 'The ODS Destination for PowerPoint';
ods powerpoint file="c:\temp\use_pgbreak.ppt" ;
p 'Twas brillig and the slithy toves.';
p 'Did gyre and gimble in the wabe' / style=[color=red fontsize=25pt];
p 'All mimsy were the borogroves.' / style=[color=purple fontsize=30pt];
p 'And the mome raths outgrabe.' / style=[color=purple fontsize=30pt];
proc odstext pagebreak=yes;
p 'Beware the Jabberwock my son!';
p 'The jaws that bite the claws that snatch' / style=[color=red fontsize=25pt];
p 'Beware the Jubjub bird and shun' / style=[color=purple fontsize=30pt];
p 'The frumious Bandersnatch' / style=[color=purple fontsize=30pt];
ods _all_ close;