|
-
Nov 11th, 2005, 08:46 AM
#1
[RESOLVED] Protect word document
Is is possible to password-protect a MS Word document so it can't be printed?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 11th, 2005, 09:02 AM
#2
Re: Protect word document
If you can't open it, you can't print it (at least that is how it would appear to me.)
Check this out.
-
Nov 11th, 2005, 10:31 AM
#3
Re: Protect word document
 Originally Posted by Hack
If you can't open it, you can't print it (at least that is how it would appear to me.)
Check this out.
Of course, but I thought you could do this pretty much like in pdf docs.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 11th, 2005, 10:55 AM
#4
Re: Protect word document
Word documents and PDF documents are two different animals made by two different companies and each has their own individual requirements.
If you are dealing with Word, then you need to follow Word's rules.
-
Nov 11th, 2005, 11:01 AM
#5
Re: Protect word document
You can Protect content from being edited by using Forms.
Right click on the toolbar section of word, to bring up your toolbar list, and select Forms. With the toolbar you can create forms on your document, and then protect them by going to Tools / Protect / Forms.
This will protect any part of your document which isn't a form (i.e. in grey when you do a form)
To stop someone printing a doc you have to use VBA. You can intercept the print command by using a macro with the name FilePrint.
In your code module for the doc paste the following code, it should purpress the print option.
Sub FilePrint()
MsgBox "Print disabled"
End Sub
-
Nov 11th, 2005, 11:04 AM
#6
Re: Protect word document
Very cool. Does your code prevent printing from both the print button icon on the toolbar as well as FilePrint?
-
Nov 14th, 2005, 03:39 AM
#7
Re: Protect word document
 Originally Posted by NeedSomeAnswers
You can Protect content from being edited by using Forms.
Right click on the toolbar section of word, to bring up your toolbar list, and select Forms. With the toolbar you can create forms on your document, and then protect them by going to Tools / Protect / Forms.
I don't really understand what you're trying to say: why would I create forms and protect them when I actually want to protect the document?
 Originally Posted by NeedSomeAnswers
This will protect any part of your document which isn't a form (i.e. in grey when you do a form)
This I don't understand either. You explain how to create and protect forms and then you say this will protect anything but the forms???
 Originally Posted by NeedSomeAnswers
To stop someone printing a doc you have to use VBA. You can intercept the print command by using a macro with the name FilePrint.
In your code module for the doc paste the following code, it should purpress the print option.
Sub FilePrint()
MsgBox "Print disabled"
End Sub
Assuming Hack's issue about the "print" button could be solved, how do you protect the document so that users can't edit the VBA code?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 17th, 2005, 06:40 AM
#8
Re: Protect word document
 Originally Posted by Hack
Very cool. Does your code prevent printing from both the print button icon on the toolbar as well as FilePrint?
I insist on Hacks's point. It's very nice to trap the print menu routine but can the print button be intercepted as well? Otherwise it's useless.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 22nd, 2005, 06:31 AM
#9
Re: Protect word document
 Originally Posted by krtxmrtz
I insist on Hacks's point. It's very nice to trap the print menu routine but can the print button be intercepted as well? Otherwise it's useless.
All right, I've got it:
VB Code:
Sub FilePrintDefault()
MsgBox "I said Print is disabled!!!"
End Sub
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|