 AndyF
		
			AndyF
		
		
		
		
		
		
		
		
	
			07-03-2009 05:03 AM
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
Solved! Go to Solution.
 MikeS81
		
			MikeS81
		
		
		
		
		
		
		
		
	
			07-03-2009 08:18 AM
Hi Andy,
to 1) you can use the "SetCurrentPage" method.
Mike
07-06-2009 01:52 AM
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
 
					
				
		
 LabBEAN
		
			LabBEAN
		
		
		
		
		
		
		
		
	
			12-29-2009 09:41 AM - edited 12-29-2009 09:44 AM
(2) You can clear the PDF control by loading a blank PDF. I've attached a VI, Demo PDF, and Blank PDF to try.
 daveTW
		
			daveTW
		
		
		
		
		
		
		
		
	
			01-19-2010 03:01 AM
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
 Franck5978
		
			Franck5978
		
		
		
		
		
		
		
		
	
			03-03-2010 09:16 AM
Hello LabBEAN,
Could you please post PDF Open or Clear.zip in Labview version 7.1 ?
Thanks a lot in advance !!!
 
					
				
		
 LabBEAN
		
			LabBEAN
		
		
		
		
		
		
		
		
	
			03-03-2010 09:34 AM
I don't have the ability to back save that far. Maybe someone else can do this for you...
 daveTW
		
			daveTW
		
		
		
		
		
		
		
		
	
			03-04-2010 01:55 AM
I don't have the ability either, but maybe the printed documentation can help.
greets, Dave
 Franck5978
		
			Franck5978
		
		
		
		
		
		
		
		
	
			03-04-2010 02:06 AM
Thanks a lot daveTW and LabBEAN, I'm rather new on Labview forums and don't know about Kudos.
 
 
 
					
				
		
 LabBEAN
		
			LabBEAN
		
		
		
		
		
		
		
		
	
			04-13-2010 07:48 AM
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).