Home > Software engineering >  Vba close word printing function
Vba close word printing function

Time:10-23

Everybody is good, need to do is to make a feature to download the word documents cannot be printed (just for the sake of form, there is some you want to print method), so plan to use vba to word print button to gray,,,,
Ask specific how to implement? (originally do Java, vba will not completely, hope to be able to point in detail, or can provide some information, thank you very much!)


And Java can call this vb code?
Hope can give an idea of what, thank you!

CodePudding user response:

This problem I know you use VBA is done, but you can use the following things, for example, you see:

"Information rights management (IRM)" allows you to grant certain user or group permission to access and modify the documents, besides some similarity, IRM and document protection is not the same, IRM allows you to set the specific operation for the entire document, such as print documents or to forward the document to others, and to read or edit a document,
Only if we installed the office IRM access service, see this document also to install the service, and both can have a hotmail account, for example:

Built my own file a. d. ocx
My hotmail account: [email protected]
Is limited to print user hotmail account: [email protected]

I am using office2010, other versions of yourself to find button location:
Click: file - & gt; Information - & gt; Protect the document - & gt; According to the researchers limit permissions (R)

Pop-up dialog box below, according to the order of operations:






The following output would curtail the powers of the document account here

Other options can see we fill in the information

So, when the document to use it after installed the access services, used his account login ([email protected]), he can only view this document, not print
  •  Tags:  
  • VBA
  • Related