• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1182
  • 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.
1 Solution
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)"

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


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

Remember to set this back to true on close of the document
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

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