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


_______________________________________________
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.

Reply via email to