LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling right click in Adobe PDF(ActiveX) using LabVIEW

I am using Adobe reader 9 ActiveX in LabVIEW for report viewer(pdf files). I want to disable right click (see in attached image).

 

My questions are 

1. How to disable right click in pdf.

2. Is there any other pdf viewer available which don't allow right click and other options.

 

Other related suggestion are welcome

 

Note: Report consist of 200-300 pages approx. 

0 Kudos
Message 1 of 9
(3,336 Views)

Didn't try, but maybe using a right click event catcher and discard it on the ActiveX object.

Or even disable indicator if no scroll bar is necessary.

Benoit

0 Kudos
Message 2 of 9
(3,306 Views)

Hello, Scroll bar is required. LabVIEW don't gives me event when I configured it for right click

0 Kudos
Message 3 of 9
(3,288 Views)

I give a quick look and it seems that the ActiveX do not have an option to disabled it.

Another workaround would be to put a transparent object over the activeX and create your own scroll bar to navigate in the file.

But I would prefer to try the internet explorer activeX that I think can read pdf and can remove scrollbar.

 

Benoit

0 Kudos
Message 4 of 9
(3,286 Views)

I tried to put transparent object over ActiveX, but ActiveX is not allowing it. Also it is not possible to put external scrollbar because ActiveX invoke node don't give info. of number of pages in pdf file

0 Kudos
Message 5 of 9
(3,281 Views)

OK I did some search, and apparently since it is activeX, if the property and method do not allow you to do it, you cannot.

You can load pdf in internet explorer activex as well as many other file type. Internet explorer has more option... not sure you can disable the right click. but the idea is to find another ActiveX container that allow you to do that.

Other solution (not elegant) is to use the picture of the activeXcontainer and load it into a picture control. add a scroll bar that will be linked to the activeX scroll bar and refresh the picture... 

If you can afford it, replace your PDF as a picture and display them into a picture box. one file per page or one big jpg that contain all pages. Then scroll bar will set your position in the picture. zoom is also possible.

 

Benoit

0 Kudos
Message 6 of 9
(3,271 Views)

As our report can be multiple pages of 500 or more, I think converting it  into image is not good option.

 

I have a software namely Kid Key Lock (http://www.100dof.com/windows/kid-key-lock) which disables right click mouse every where and works fine.

 

It would be great if it is possible to develop same thing in LabVIEW.

 

 

0 Kudos
Message 7 of 9
(3,263 Views)

Yeah the problem that I just discover, is that event on activeX object are not working. This is why we cannot capture right click and discard it. Limitation of LabVIEW....

Benoit

0 Kudos
Message 8 of 9
(3,259 Views)

I didn't try yet, but here a possible solution.

http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/reg_hndl_ax_evnts/

I was able to control everything with the web browser activeX, but it seems that the adobe behave differently.

Benoit

0 Kudos
Message 9 of 9
(3,236 Views)