<?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 Hi Mustafa,
 
Thanks for… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91948#M41846</link>
    <description>Hi Mustafa,
&amp;nbsp;
Thanks for your information.&amp;nbsp;
Even i have made a customize code for the existing ""Save as""&amp;nbsp;äction where we all need to do is just send password as one of the parameter for that save as method in the existing vbo
&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim doc as Object = GetDocument(handle,documentname)
&amp;nbsp;&amp;nbsp; &amp;nbsp;doc.SaveAs(filename,,,password,,password,enforceStyleLock)
&amp;nbsp;&amp;nbsp; &amp;nbsp;newname = doc.name
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;</description>
    <pubDate>Tue, 28 Aug 2018 14:09:00 GMT</pubDate>
    <dc:creator>ManojKumar3</dc:creator>
    <dc:date>2018-08-28T14:09:00Z</dc:date>
    <item>
      <title>Word Document password protected</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91946#M41844</link>
      <description>Hi Team,

do we have any VBO action where we can make a word file a password protected document ??

i need to send the document via mail as password protected document&amp;nbsp;

&amp;nbsp;

Thanks</description>
      <pubDate>Fri, 24 Aug 2018 14:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91946#M41844</guid>
      <dc:creator>ManojKumar3</dc:creator>
      <dc:date>2018-08-24T14:48:00Z</dc:date>
    </item>
    <item>
      <title>Hi Manojt
You can duplicate…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91947#M41845</link>
      <description>Hi Manojt
You can duplicate the MS Word VBO action ""Save As"" and create your own action ""Save as Password Protected"" or create your own BO with the following code:
&amp;nbsp;Dim doc as Object = GetDocument(handle,documentname)&amp;nbsp;Dim psword&amp;nbsp; As Object
&amp;nbsp;psword = ""abcdefg""&amp;nbsp;(or whatever password&amp;nbsp;you want to set, this could also be a data item input to your code stage)&amp;nbsp;doc.Protect(Microsoft.Office.Interop.Word.WdProtectionType.wdAllowOnlyFormFields)
&amp;nbsp;doc.SaveAs(filename, Password:=psword)
&amp;nbsp;newname = doc.name
Where you add the bold vb.net code.
Remember to add the ""Microsoft.Office.Interop.Word.dll"" in External references/namespace import&amp;nbsp;section of&amp;nbsp;Business Object Properties's Code options tab.
These are the different protection-types that you have in the WdProtectionType method: &lt;A href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.wdprotectiontype?view=word-pia" target="test_blank"&gt;https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.wdprotectiontype?view=word-pia&lt;/A&gt;
N.B. Once having set the password protect via above code, even if you unlock and remove the password protection from the document, you cannot reset the password protection with above code again. Though I'm sure you can solve this programmatically somehow...
Good luck.
BR,
Mustafa</description>
      <pubDate>Mon, 27 Aug 2018 16:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91947#M41845</guid>
      <dc:creator>Mustafa_UlasYig</dc:creator>
      <dc:date>2018-08-27T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Hi Mustafa,
 
Thanks for…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91948#M41846</link>
      <description>Hi Mustafa,
&amp;nbsp;
Thanks for your information.&amp;nbsp;
Even i have made a customize code for the existing ""Save as""&amp;nbsp;äction where we all need to do is just send password as one of the parameter for that save as method in the existing vbo
&amp;nbsp;
&amp;nbsp;&amp;nbsp; &amp;nbsp;Dim doc as Object = GetDocument(handle,documentname)
&amp;nbsp;&amp;nbsp; &amp;nbsp;doc.SaveAs(filename,,,password,,password,enforceStyleLock)
&amp;nbsp;&amp;nbsp; &amp;nbsp;newname = doc.name
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;</description>
      <pubDate>Tue, 28 Aug 2018 14:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Word-Document-password-protected/m-p/91948#M41846</guid>
      <dc:creator>ManojKumar3</dc:creator>
      <dc:date>2018-08-28T14:09:00Z</dc:date>
    </item>
  </channel>
</rss>

