LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX enable word document protection with labview

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(3,274 Views)
Solution
Accepted by topic author ThibaudP

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>   ---'


0 Kudos
Message 2 of 3
(3,257 Views)

Thanks, it worked great with the the Report Gen Toolkit !

0 Kudos
Message 3 of 3
(3,222 Views)