How to Disable Printing?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to disable the print option on a per document basis. I want
to disable the print option upon opening of certain Word documents.

Thanks.
 
Can't be done. You can remove the Print options from the menus and toolbars,
and you can write macros called FilePrint and FilePrintDefault to intercept
the built-in print instructions. But there's nothing you can do to prevent
these methods --

1) Browse to the file in Windows Explorer. Right-Click the file. Select
Print from the context menu. (This method bypasses any macros you might have
set up for Word as a whole or the document in particular.)

2) Open the document. Go to Tools > Macros. Select 'Word Commands' from the
'Macros In' list. Select FilePrint. (This method runs the built-in Print
command regardless of any macros. And even if you remove the Macros option
from the menu, you can't stop the user resetting the menu.)

3) Open the document via VB and call the print method.
 
And a user could simply disable the macros and you'd be back where you
started.
If you want to stop someone from printing a document, the best you'll
achieve is with a PDF file, with security options set to prevent printing,
but even that would not deter someone determined.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
You can almost disable printing. See the help file for the application level
DocumentBeforePrint event: this includes disabling printing from Windows
Explorer. I say 'almost' because, as Graham Mayor says, the user can simply
disable the macros.
 
Back
Top