Thanks but not clear how to use this. I've opened object browser for Adobe reader, the interfaces show IAcroAXDocShim and _IAcroAXDocShimEvents. Dragging either of these to a prg does show all the methods but attempting to run says it can't find "AcroPDFLib.AcroPDF"
Not sure what installs this as I've only got the viewer not full distiller. Regards Graham Brown -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Tracy Pearson Sent: 06 June 2014 16:46 To: [email protected] Subject: RE: Opening PDFs Graham Brown wrote on 2014-06-06: > Hi all > > > One of my clients wants to be able to show a pdf document but disable > Save/Email/Print/Copy. > > I've embedded the activex into a fox form but there doesn't seem to > be any way to hide the autohide menu in the view (called a heads up > display or HUD) > > Doesn't seem to be any way to bindevents to the methods either. > > > Has anyone come across a simple way to achieve this please? > > > Regards > > Graham > > > > Graham, It might be simplest to set a password on to the PDF files that prevent those functions from working. But going with your VFP solution... I have, in the past, with VFP, needed to work with an Interface class, then use EventHandler() to connect the ActiveX/COM object and the Interface object together. If you open the ActiveX in Object Browser, you can drag an Interface (one that is bolded) to a new prg. It will create the interface structure for you. There might be an event that is fired when attempting to do one of these things which you can block the action from happening. For instance, the CodeStone SMTP control (http://www.codestone.co.uk/) has an ILogHandler interface. It allowed me to capture more details when I was having troubles with a particular server. This is how they get connected: This.oLog = CREATEOBJECT("csmail.loghandler") This.oLogHandler = NEWOBJECT("csmailloghandler", "csmailloghandler.fxp") EVENTHANDLER(This.oLog, This.oLogHandler) Tracy Pearson PowerChurch Software [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

