LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDF in labview front panel, various questions regarding programatic control

Solved!
Go to solution

Hi,

 

I have created an ActiveX front panel control that allows me to open a document and jump between adjancent pages amongst other things, but I was wondering if the following were possible:

 

1) To jump to a given page

2) To close the document down and return the VI to the state it was in before I opened the PDF, i.e. so nothing is displayed other than say the white background. I have tried loading nothing ("") but that doesn't seem to do anything.

3)  To prevent the user scrolling (I have removed the scroll bars,but it is possible to scroll with the mouse)

4) To prevent the user right clicking to bring up the adobe menu.

 

I am presuming that it is not possible to do the above as there aren't any methods that appear to allow this?

 

I guess 3 +4 could be solved by placing a transparent object over the top?

 

Thanks

 

Andy

0 Kudos
Message 1 of 10
(6,156 Views)
Solution
Accepted by topic author AndyF

Hi Andy,

to 1) you can use the "SetCurrentPage" method.

 

Mike

0 Kudos
Message 2 of 10
(6,135 Views)

Hi Mike Thanks. couldn't see the wood for the trees for that one! The number of times I scanned the options available and I couldn't see it... Need to get my eyes tested!

 

I can't seem to place anything over the top of activeX object though to prevent the user from accessing it and using the scroll or adobe menu: it seems to be modal and is always on top.

 

Is there anything else I can do or stop it being modal?

 

Thanks

 

Andy

 

 

0 Kudos
Message 3 of 10
(6,110 Views)

(2) You can clear the PDF control by loading a blank PDF.  I've attached a VI, Demo PDF, and Blank PDF to try.

 

Message Edited by LabBEAN on 12-29-2009 10:44 AM

Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
Message 4 of 10
(5,884 Views)

Hello,

since I had problems to show a pdf- document at all in an Acrobat- ActiveX container, I started to download some of the demo VIs posted in the forum. The only one that worked on my machine was the "PDF Open or Clear.vi". The reason for this was the VI- setting (open dialog with Ctrl+I ) on page "Execution",  "Preferred execution system" set to "User Interface". This seems to be absolutely necessary.

I work on a WinXP 32bit with LV2009.

greets, Dave

Greets, Dave
0 Kudos
Message 5 of 10
(5,797 Views)

Hello LabBEAN,

 

Could you please post PDF Open or Clear.zip in Labview version 7.1 ?

 

Thanks a lot   in advance !!!

 

 

0 Kudos
Message 6 of 10
(5,638 Views)

I don't have the ability to back save that far.  Maybe someone else can do this for you...


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
Message 7 of 10
(5,625 Views)

I don't have the ability either, but maybe the printed documentation can help.

 

greets, Dave

Greets, Dave
Message 8 of 10
(5,609 Views)

Thanks a lot daveTW and LabBEAN, I'm rather new on Labview forums and don't know about Kudos.

 

Smiley Wink 

0 Kudos
Message 9 of 10
(5,600 Views)

Franck5978 wrote:

I'm rather new on Labview forums and don't know about Kudos.


 

 

Kudos = thank you, good post, I agree, that was hilarious, etc.

 

You have to be signed in to the forums to give Kudos (by clicking the white star to the right). 


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 10 of 10
(5,462 Views)