• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1164
  • Last Modified:

Disable printing in word document

Is it possible to disable printing in word document? I have a web application which loads up a word document and I want to prevent users from printing the word document.

Thanks for the help.
0
rospcc
Asked:
rospcc
1 Solution
 
callrsCommented:
I don't know of such a way in Word.
But you can do what I did: convert the document to pdf, and set the print-restrictions in that pdf document. You may need to buy the full Adobe Acrobat for the conversion, but there are some free products available. Just Google for: word to pdf convert, which will get you a whole bunch of links.

E.g., at http://www.pdf995.com/
"The Pdf995 Suite offers the following features, all at no cost:
...Standard PDF Encryption (restricted printing, modifying, copying text and images)"


0
 
daleoranCommented:
0
 
wobbledCommented:
This can be done by over-riding the commands in the word menus, but this is quite complex to create.  An easier way is to hide the option from the menu bars

You want to put something like this in the code for the document on the on open command. (users will still be able to use shortcut keys though of ctrl + p)

Application.CommandBars("Menu bar").Controls("File").Enabled = False

or

Application.CommandBars("Menu bar").Controls("File").Visible = False

Remember to set this back to true on close of the document
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now