<?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: How to set editing restrictions for the Word document programmatically using SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719753#M222891</link>
    <description>&lt;P&gt;RTF files cannot be password protected afaik.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 23:00:51 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-02-16T23:00:51Z</dc:date>
    <item>
      <title>How to set editing restrictions for the Word document programmatically using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719746#M222886</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to set the editing restrictions for the &lt;STRONG&gt;Word document&lt;/STRONG&gt; programmatically using SAS?&lt;/P&gt;&lt;P&gt;The aim is to enable the Read-Only mode but set the password to restrict the editing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the below code to set the read-only attributes but would like to protect them with a password.&lt;/P&gt;&lt;P&gt;x attrib -r ".\xyz.RTF" ; *Removes Read Only Attribute ;&lt;BR /&gt;%report;&lt;BR /&gt;x attrib +r ".\xyz.RTF" ; *Adds Read Only Attribute;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any inputs are much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;BR /&gt;Santhosh&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 22:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719746#M222886</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-02-16T22:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to set editing restrictions for the Word document programmatically using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719753#M222891</link>
      <description>&lt;P&gt;RTF files cannot be password protected afaik.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 23:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719753#M222891</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-16T23:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set editing restrictions for the Word document programmatically using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719896#M222954</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Santoshrk_0-1613568830490.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54839i89529EC29EC40352/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Santoshrk_0-1613568830490.png" alt="Santoshrk_0-1613568830490.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is possible to Restrict Editing RTF files manually. Please provide some thoughts on doing it programmatically.&lt;BR /&gt;Generally, when we develop a report using the tool, it is obvious that we need to add some protection to the output file to restrict editing by others. I'm sure there will be a way to do it, but couldn't able to find anything online.&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 13:38:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719896#M222954</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-02-17T13:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to set editing restrictions for the Word document programmatically using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719906#M222956</link>
      <description>&lt;P&gt;That is MS Word internal. As long as you save this as a RTF file, any other software will ignore the (MS-specific) tags and let you happily edit the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to protect documents, save them as docx and use VBA to set the protection.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719906#M222956</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-17T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to set editing restrictions for the Word document programmatically using SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719923#M222960</link>
      <description>&lt;P&gt;Thanks KurtBremser for your inputs on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 20:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-set-editing-restrictions-for-the-Word-document/m-p/719923#M222960</guid>
      <dc:creator>Santoshrk</dc:creator>
      <dc:date>2021-02-17T20:05:21Z</dc:date>
    </item>
  </channel>
</rss>

