<?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 Re: ODS PowerPoint - Inserting an image causes text box to shift in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PowerPoint-Inserting-an-image-causes-text-box-to-shift/m-p/352437#M18389</link>
    <description>Hi:&lt;BR /&gt;  ODS POWERPOINT is new, so it is probably best to work with Tech Support on this one. They will need to see ALL your code, not just the snippet of macro code that you attached here and probably some test data, as well.&lt;BR /&gt;cynthia</description>
    <pubDate>Sat, 22 Apr 2017 15:09:12 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-04-22T15:09:12Z</dc:date>
    <item>
      <title>ODS PowerPoint - Inserting an image causes text box to shift</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PowerPoint-Inserting-an-image-causes-text-box-to-shift/m-p/352255#M18383</link>
      <description>&lt;P&gt;I am trying to insert an image into a PowerPoint, but the step used to insert the image is causing text on the slide to shift down. &amp;nbsp;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ppt_slide_1;
	/*background*/
	ods powerpoint options(backgroundimage="ENTER PATH LOCATION\Background test.png");

	ods layout gridded rows=2;
		ods region row=1;
	proc odstext;
		p " This is the title " / style=[just=left fontweight=bold fontsize=32pt padding=0pt];
		p " " / style=[just=left fontweight=bold fontsize=32pt padding=0pt];
	run;

	ods region row=2;
	proc report data=sas.&amp;amp;sas_table_name._b nowd style={preimage="ENTER PATH LOCATION\performance.png"};
	column grade;
	define grade/ noprint;
	run;
	ods layout end;

%mend ppt_slide_1;


ods powerpoint file="ENTER PATH LOCATION\Example PPT.pptx";
%ppt_slide_1;
ods powerpoint close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the code without the proc report step, the text&amp;nbsp;appears at the top of the page where it should.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8479iC9913E7CBFDEBCA5/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Good image.png" title="Good image.png" width="438" height="327" /&gt;&lt;/P&gt;&lt;P&gt;When I include the proc report step, the text is shifted down the page. Notice that it runs into the line that is part of the background image.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8480i67218822092CABBF/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Bad image.png" title="Bad image.png" width="537" height="405" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attempted many fixes without success:&lt;/P&gt;&lt;P&gt;1.) Added a height statement to the ods region in an attempt to force the rows to be a specific height. &amp;nbsp;No affect.&lt;/P&gt;&lt;P&gt;2.) Attempted to use a title statement instead of an odstext. &amp;nbsp;Although this appears to 'fix' the issue, it doesn't really. &amp;nbsp;I have other slides where I need text on the page in a different position than the title. &amp;nbsp;The images are still shifting the location of the text there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.) Attempted to use absolute X and Y positions as part of the ods region statement. &amp;nbsp;No affect.&lt;/P&gt;&lt;P&gt;4.) I have thought about using the layout=titleandcontent statement, but my slides will contain more than one image/textbox. &amp;nbsp;Above I have provided simplified code, but in my full code I am using a layout gridded with 3 rows and 3 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideas?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13735i078C2A5830048EBD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Title Background test.png" title="Title Background test.png" /&gt;</description>
      <pubDate>Fri, 21 Apr 2017 17:45:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PowerPoint-Inserting-an-image-causes-text-box-to-shift/m-p/352255#M18383</guid>
      <dc:creator>astein2</dc:creator>
      <dc:date>2017-04-21T17:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PowerPoint - Inserting an image causes text box to shift</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PowerPoint-Inserting-an-image-causes-text-box-to-shift/m-p/352437#M18389</link>
      <description>Hi:&lt;BR /&gt;  ODS POWERPOINT is new, so it is probably best to work with Tech Support on this one. They will need to see ALL your code, not just the snippet of macro code that you attached here and probably some test data, as well.&lt;BR /&gt;cynthia</description>
      <pubDate>Sat, 22 Apr 2017 15:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PowerPoint-Inserting-an-image-causes-text-box-to-shift/m-p/352437#M18389</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-04-22T15:09:12Z</dc:date>
    </item>
  </channel>
</rss>

