cancel
Showing results for 
Search instead for 
Did you mean: 

Disable PrintButton in UiElement InteractiveForm (Adobe Reader)

former_member211591
Contributor
0 Kudos

Hi all,

I'm trying to prevent users to print documents using the embedded PDF Reader.

I tried methods set_hide_toolbars and set_disable_print_button of CL_WD_IACTIVE_FORM_METHOD_HNDL at WDDOMODIFYVIEW(FIRST_TIME = X), but it does not work. These methods have now effect to the Adobe Reader. In this case in is Adobe Reader XI.

Are there known issues with newer PDF Readers (Changed Interfaces)?

Thanks a lot

ismail

Accepted Solutions (1)

Accepted Solutions (1)

prajeshdesai
Contributor
0 Kudos

use below java script on prePrint event, this will not hide anything but not process printing action,

data::prePrint - (JavaScript, client)

xfa.event.cancelAction = 1;

Hope this helps.

former_member211591
Contributor
0 Kudos

Hi,

good idea.

But this means I need to adapt a lot of Adobe Forms. I think I'll extend the forms Interface to control your script from WD.

Thanks a lot...

Answers (0)