<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Fit table on single slide Proc Report ODS Powerpoint in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583608#M23212</link>
    <description>&lt;P&gt;I'm trying to fit a table onto one PP slide.&amp;nbsp; The problem is I can't figure out how to adjust row/cell height/spacing/margin.&amp;nbsp; I've tried using 'height', 'cellpadding', 'cellspacing'.&amp;nbsp; I've tried making each of those very small and very large, in "in" and "pt"&amp;nbsp;but it never changes my output.&amp;nbsp; I must be using them incorrectly.&amp;nbsp; Not even sure if that is what I should be using to achieve my goal.&amp;nbsp; Tried searching for this problem and how to use those style options with not much luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a test table with sashelp.cars that has the same number of rows as my actual data to hopefully make this easier to help me.&amp;nbsp; I've attached what I get vs what I want.&amp;nbsp; Slides 1-2 are the current output.&amp;nbsp; Slide 3 is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql outobs = 41;&lt;BR /&gt;create table car_test as&lt;BR /&gt;select make, model&lt;BR /&gt;from sashelp.cars&lt;BR /&gt;;quit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;options orientation= landscape papersize=letter nodate nonumber topmargin= .025in bottommargin= .001in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leftmargin= .5in rightmargin= .5in ;&lt;BR /&gt;ods noproctitle ;&lt;BR /&gt;ods escapechar ="^" ;&lt;BR /&gt;title ;&lt;BR /&gt;footnote ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods powerpoint file ="/mypath/test.pptx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***Create first slide;&lt;BR /&gt;proc odstext;&lt;BR /&gt;p "Test title" / style=[FONT_WEIGHT=BOLD FONT_SIZE=13 just=l];&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods layout gridded x=0.25in y=1.125in;&lt;BR /&gt;ods region;&lt;/P&gt;&lt;P&gt;option center;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report nowd data = car_test&lt;BR /&gt;style(header)=[font_weight=bold background=CXD3ADD9 foreground=black just=c fontsize=7pt]&lt;BR /&gt;style(column)=[just=c fontsize=7pt verticalalign=middle height=9pt];&lt;BR /&gt;col make model;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods layout end;&lt;BR /&gt;ods powerpoint close;&lt;BR /&gt;ods listing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 21:05:33 GMT</pubDate>
    <dc:creator>afettig</dc:creator>
    <dc:date>2019-08-23T21:05:33Z</dc:date>
    <item>
      <title>Fit table on single slide Proc Report ODS Powerpoint</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583608#M23212</link>
      <description>&lt;P&gt;I'm trying to fit a table onto one PP slide.&amp;nbsp; The problem is I can't figure out how to adjust row/cell height/spacing/margin.&amp;nbsp; I've tried using 'height', 'cellpadding', 'cellspacing'.&amp;nbsp; I've tried making each of those very small and very large, in "in" and "pt"&amp;nbsp;but it never changes my output.&amp;nbsp; I must be using them incorrectly.&amp;nbsp; Not even sure if that is what I should be using to achieve my goal.&amp;nbsp; Tried searching for this problem and how to use those style options with not much luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made a test table with sashelp.cars that has the same number of rows as my actual data to hopefully make this easier to help me.&amp;nbsp; I've attached what I get vs what I want.&amp;nbsp; Slides 1-2 are the current output.&amp;nbsp; Slide 3 is what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql outobs = 41;&lt;BR /&gt;create table car_test as&lt;BR /&gt;select make, model&lt;BR /&gt;from sashelp.cars&lt;BR /&gt;;quit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;options orientation= landscape papersize=letter nodate nonumber topmargin= .025in bottommargin= .001in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leftmargin= .5in rightmargin= .5in ;&lt;BR /&gt;ods noproctitle ;&lt;BR /&gt;ods escapechar ="^" ;&lt;BR /&gt;title ;&lt;BR /&gt;footnote ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods powerpoint file ="/mypath/test.pptx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***Create first slide;&lt;BR /&gt;proc odstext;&lt;BR /&gt;p "Test title" / style=[FONT_WEIGHT=BOLD FONT_SIZE=13 just=l];&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods layout gridded x=0.25in y=1.125in;&lt;BR /&gt;ods region;&lt;/P&gt;&lt;P&gt;option center;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report nowd data = car_test&lt;BR /&gt;style(header)=[font_weight=bold background=CXD3ADD9 foreground=black just=c fontsize=7pt]&lt;BR /&gt;style(column)=[just=c fontsize=7pt verticalalign=middle height=9pt];&lt;BR /&gt;col make model;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods layout end;&lt;BR /&gt;ods powerpoint close;&lt;BR /&gt;ods listing;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 21:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583608#M23212</guid>
      <dc:creator>afettig</dc:creator>
      <dc:date>2019-08-23T21:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fit table on single slide Proc Report ODS Powerpoint</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583698#M23215</link>
      <description>&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ods powerpoint file='test.pptx' layout=TitleAndContent&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ref:&amp;nbsp;&lt;A href="http://support.sas.com/kb/50/486.html" target="_blank"&gt;http://support.sas.com/kb/50/486.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2019 18:59:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583698#M23215</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-08-24T18:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Fit table on single slide Proc Report ODS Powerpoint</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583797#M23216</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Changing-ODS-Powerpoint-Slide-Title-Size/td-p/239776" target="_self"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Changing-ODS-Powerpoint-Slide-Title-Size/td-p/239776&lt;/A&gt;&amp;nbsp;shows how to change the size of the title for PowerPoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use PROC PRINT to print the first 20 rows, then another PROC PRINT to print the remaining 21 rows.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql outobs=41;
	create table car_test as select make, model from sashelp.cars;
quit;

run;
ods _all_ close;
run;

* use style template to change size of title font.  see 
* https://communities.sas.com/t5/ODS-and-Base-Reporting/Changing-ODS-Powerpoint-Slide-Title-Size/td-p/239776
* for more details.  ;

ods path (prepend) work.templat(update);
proc template;
  define style styles.mystyle;
    parent = styles.powerpointlight;
    class systemtitle / 
      fontsize=13pt
      fontweight=bold
      textalign=left;
  end;
run;

options orientation=landscape /*papersize=letter*/ nodate nonumber topmargin=.025in 
	bottommargin=.001in leftmargin=.5in rightmargin=.5in;
	
ods noproctitle;

ods escapechar="^";

title;

footnote;

ods powerpoint file="/folders/myfolders/ODS POWERPOINT examples/test.pptx"
  style=mystyle;
  
***Create first slide;

ods powerpoint layout=twocontent;

title "Test title";

proc print data=car_test(obs=20) noobs
  style(header)=[fontweight=bold backgroundcolor=cxd3add9 color=black just=c fontsize=13pt];
  var make model / style(column)=[just=c fontsize=13pt verticalalign=middle height=9pt];
run;

proc print data=car_test(firstobs=21 obs=41) noobs
  style(header)=[fontweight=bold backgroundcolor=cxd3add9 color=black just=c fontsize=13pt];
  var make model / style(column)=[just=c fontsize=13pt verticalalign=middle height=9pt];
run;


ods powerpoint close;
ods listing;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Split 41 row table into 2 pieces to display in PowerPoint" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32009iE797D80B0AE1D77F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Split 41 row table into 2 pieces for PowerPoint slide.jpg" alt="Split 41 row table into 2 pieces to display in PowerPoint" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Split 41 row table into 2 pieces to display in PowerPoint&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 23:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583797#M23216</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2019-08-25T23:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fit table on single slide Proc Report ODS Powerpoint</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583903#M23217</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I think Suzanne has a good idea with the 2 column approach. I heard from my contact in Tech Support that you can't get the cellpadding any smaller than 5pt with PowerPoint as a destination, so shrinking cellpadding as a method to fit more on the slide won't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:32:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583903#M23217</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-08-26T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fit table on single slide Proc Report ODS Powerpoint</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583924#M23218</link>
      <description>&lt;P&gt;My actual table I'm reporting out has more than 2 columns of data so unfortunately this is not a feasible option.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 14:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Fit-table-on-single-slide-Proc-Report-ODS-Powerpoint/m-p/583924#M23218</guid>
      <dc:creator>afettig</dc:creator>
      <dc:date>2019-08-26T14:30:33Z</dc:date>
    </item>
  </channel>
</rss>

