<?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 Export graphs from a macro call to powerpoint in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300620#M10610</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if there is a way to automate the process of sending the generated graphs from a macro call directly&amp;nbsp;to powerpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas if this can be achieved in sas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg: my macro call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%plot(data=test, var=endpoint, inputvar=adt ,xlabel=,ylabel=,xval=,title=%str('end point'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2016 15:58:42 GMT</pubDate>
    <dc:creator>ari</dc:creator>
    <dc:date>2016-09-25T15:58:42Z</dc:date>
    <item>
      <title>Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300620#M10610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if there is a way to automate the process of sending the generated graphs from a macro call directly&amp;nbsp;to powerpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas if this can be achieved in sas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg: my macro call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%plot(data=test, var=endpoint, inputvar=adt ,xlabel=,ylabel=,xval=,title=%str('end point'));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 15:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300620#M10610</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2016-09-25T15:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300622#M10611</link>
      <description>&lt;P&gt;Do you have SAS 9.4?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so then yes, PowerPoint is a valid destination.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ods powerpoint file='path to new file.pptx' style=meadow;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;macro calls...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods powerpoimt close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See detailed examples here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings13/041-2013.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings13/041-2013.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 16:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300622#M10611</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-25T16:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300637#M10612</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, with that option I could export one graph at a time but I want to export several (about 20) plots to export. Is that possible as well?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 18:01:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300637#M10612</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2016-09-25T18:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300643#M10613</link>
      <description>&lt;P&gt;Sure, just depends on where you place your ODS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If all your macro statements go between the ODS statements all your graphs go to the ODS destination.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code initially illustrates this, you place all your macro statements between the ODS statements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 19:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300643#M10613</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-25T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300645#M10614</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put all the macro statements between the ODS statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But still it didnt solve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see in the log this error and I cant see anything in the ppt file (it says ppt file is in use)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: ZIP entry duplicate name: ppt/media/SGPlot1.png&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any solution this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 19:47:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300645#M10614</guid>
      <dc:creator>ari</dc:creator>
      <dc:date>2016-09-25T19:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300660#M10615</link>
      <description>&lt;P&gt;Without your code, No.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure that the Powerpoint is closed and that your creating graphs with unique names.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2016 23:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300660#M10615</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-25T23:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export graphs from a macro call to powerpoint</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300667#M10616</link>
      <description>&lt;P&gt;Here's an example that demonstrates how it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods powerpoint file='/folders/myfolders/out.pptx' style=meadow;

title 'Class - Height by Weight';
proc sgplot data=sashelp.class;
scatter x=height y=weight;
run;

title 'Cars - City vs Highway MPG';
proc sgplot data=sashelp.cars;
scatter x=mpg_city y=mpg_highway;
run;

ods powerpoint close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Sep 2016 23:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Export-graphs-from-a-macro-call-to-powerpoint/m-p/300667#M10616</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-25T23:44:46Z</dc:date>
    </item>
  </channel>
</rss>

