<?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 Outputting data to a word template in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803739#M40441</link>
    <description>&lt;P&gt;I'm relatively new to SAS, and recently discovered the ODS function. Currently, I've been copy and pasting a SAS output into different tables in a Word document, and was hoping to try and automate the process by loading up the template and having SAS output the data directly into a Word document into predefined tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done a bit of Googling have so far only found this &lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi28/016-28.pdf" target="_self"&gt;paper.&lt;/A&gt; Admittedly I found it a bit hard to follow. Are there many other examples around of this being done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 06:09:08 GMT</pubDate>
    <dc:creator>dtha2622</dc:creator>
    <dc:date>2022-03-24T06:09:08Z</dc:date>
    <item>
      <title>Outputting data to a word template</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803739#M40441</link>
      <description>&lt;P&gt;I'm relatively new to SAS, and recently discovered the ODS function. Currently, I've been copy and pasting a SAS output into different tables in a Word document, and was hoping to try and automate the process by loading up the template and having SAS output the data directly into a Word document into predefined tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've done a bit of Googling have so far only found this &lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi28/016-28.pdf" target="_self"&gt;paper.&lt;/A&gt; Admittedly I found it a bit hard to follow. Are there many other examples around of this being done?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 06:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803739#M40441</guid>
      <dc:creator>dtha2622</dc:creator>
      <dc:date>2022-03-24T06:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting data to a word template</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803744#M40442</link>
      <description>&lt;P&gt;The paper from 2003 uses DDE, which has since been deprecated by Microsoft.&lt;/P&gt;
&lt;P&gt;You can use styles in ODS RTF and ODS WORD (at this time, WORD is still pre-production).&lt;/P&gt;
&lt;P&gt;You cannot write to an exu'isting file, you always create a new one, so the whole document needs to be created by your code.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 07:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803744#M40442</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-24T07:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting data to a word template</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803791#M40443</link>
      <description>&lt;P&gt;The best way to incorporate SAS and Microsoft Office files is to pull the data into Office vs pushing it from SAS. There are numerous libraries out there, some free/some not, that handle MS Office documents. SAS datasets are ODBC-compliant so you can write SAS then pull the data into a MS Office file. I use C# and the GemBox library but there are free alternatives in the C# and Python landscapes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally, I have automated Word, Excel, PowerPoint, Project, and Visio with SAS data. I have not pushed from SAS at any of those client engagements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have a paper on using Word specifically since Word is not used as often. However, see this code bit on GitHub to see Excel in action:&amp;nbsp;&lt;A href="https://github.com/savian-net/ExcelSasDemo" target="_blank"&gt;savian-net/ExcelSasDemo (github.com)&lt;/A&gt;. Chris Hemendinger also has lots of papers on SAS in .NET/PowerShell. If you need a demo for Word, I can probably put something together but the main idea is to pull vs push, Office pulling SAS data, not SAS pushing out Word.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Word is better at Word. Once SAS has the data in the form you need, it is just a table with rows/columns.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/803791#M40443</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2022-03-24T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting data to a word template</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/808908#M40589</link>
      <description>&lt;P&gt;Our SAS hackathon project may help, it can inject values (not necessary to be a full table/dataset) into a Word paragraph, Word table, Word chart, including images.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Hacker-s-Hub/One-Click-Report-Automation-Healthcare-amp-other-industries/ta-p/803511" target="_blank"&gt;One-Click Report Automation - An automated and user friendly workflow for efficient, flexible, and extendable analysis and reporting (sas.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 19:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Outputting-data-to-a-word-template/m-p/808908#M40589</guid>
      <dc:creator>Bravez</dc:creator>
      <dc:date>2022-04-20T19:26:58Z</dc:date>
    </item>
  </channel>
</rss>

