How can i disable 'SaveAs' and 'Print' option in word document using vb.net
Hello all
I want to make 'SaveAs' and 'Print' options disable from my document using vb.net, Is it possible ?
is there any other way to do that ?
Or how can I stop user from make a copy of document or print it ?
(If he takes screen shot, no issues)
Thanks in advanvced
Re: How can i disable 'SaveAs' and 'Print' option in word document using vb.net
This can be achieved by controlling xml part of your ribbon.
The code is given below to change the ribbon part
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">
<commands>
<command idMso="FilePrint" enabled="false" />
<command idMso="FilePrintQuick" enabled="false" />
<command idMso="FileSave" enabled="false" />
<command idMso="FileSaveAs" enabled="false" />
</commands>
<ribbon>
<tabs>
<tab idMso="TabAddIns">
<group id="MyGroup"
label="My Group">
</group>
</tab>
</tabs>
</ribbon>
</customUI>
You can either write a code in vb.net to control the ribbon or by changing normal.dotm
Re: How can i disable 'SaveAs' and 'Print' option in word document using vb.net
Whats to keep them from copying the file? Remember that anything that is visible on the screen is printable in one way or another. Heck you could even do a screen capture.
You may be better off adding a watermark to your document