I am running SAS 9.4 TS Level 1M3. I am using ODS Powerpoint to create a presentation, and I have been unable to adjust the slide margins. Ideally, I would like to have the margins as close to zero as possible so that I can print very close to the edge of the slide. Specifically, I am trying to use a title statement to add text in the upper right corner that appears above the main slide title. Essentially, I'm trying to use title1 as a header above the actual title. So far, the best I have been able to get is margins of 0.25in on top, bottom, left, and right. With margins this large, the main title is pushed further down the slide than I would like. I have tried many different settings and options, but I haven't been able to get anything to print within the first 0.25in of the slide.
Here is my code. Any help is greatly appreciated.
/* Clear datasets, log file, output file, and special characters */
proc datasets kill nolist;quit;
dm 'log' clear; /*clear log file*/
options compress=yes FORMCHAR="|----|+|---+=|-/\<>*"; title; footnote;
ods path(prepend) work.template(update);
/* Creating a template for the PPT. */
proc template;
define style styles.appendix;
parent=styles.powerpointlight;
style body / topmargin=0in;
class systemfooter/ just=left;
style systemfooter/ color=black font_size=8pt;
class data, table / font_size=10pt;
style table / cellpadding=0pt cellspacing=0pt height=5pt;
end;
ods html close;
ods listing close;
goptions reset=all;
ods escapechar='^';
options nodate nonumber center
papersize=(10in 7.5in)
rightmargin=0in
leftmargin=0in
topmargin=0in
bottommargin=0in
missing='';
ods graphics /border=off imagefmt=png;
ods powerpoint file="E:\for Amelia\Practice PPT.pptx" style=styles.appendix;
/*Is it possible to move the first title any closer to the upper right corder of the slide?
The closest that I can get it is 0.25in x 0.25in */
title1 j=right height=12pt color=CX0070C0 bspace=0 "Text in upper right corner";
title2 j=left height=32pt bold bspace=0 "Location of main title";
proc odstext;
p "This is the body of the slide" /style=[vjust=center just=center color=CX005DB7 fontsize=56pt fontweight=bold];
run;
title;
ods powerpoint close;
Hi Astein2,
I have the same question. Do you have answer ?
Thanks
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.