09-22-2015 11:06 AM
Hello all !
I am desperately trying to enable (or disable) the "file protection" of a Word document with ActiveX, someone told me that's possible !
has anyone already done this ?
Many thanks for your answers
Solved! Go to Solution.
09-22-2015 12:25 PM - edited 09-22-2015 12:52 PM
What starting point do you have? Do you have the Report Generation Toolkit? There is no pre-made VI for this, so you'll have to manipulate the ActiveX reference using property nodes and invoke nodes to perform the actions.
If you have the Report Gen Toolkit, you can use the Word Get ActiveX References to get the "_Document" reference. Once you have that, there's a stupid simple Password property that you can set. Blank input gets rid of the password protection. There is also an Invoke method called Protect, which can set specific document protection options.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
09-23-2015 03:43 AM
Thanks, it worked great with the the Report Gen Toolkit !