Adobe PDF Reader

Started by velasquez, May 24, 2009, 07:23:41 AM

Previous topic - Next topic

velasquez

Does anybody have some example of how to work with Adobe PDF Reader with OpenDCL? 
Could help me? 
How does to verify ActiveX exist or not?

Thanks

Fred Tomke

Hi,

try a

Code (autolisp) Select

(defun acrobat_is_installed (/ strCLSID strFile)
  (and (vl-registry-descendents "HKEY_CLASSES_ROOT\\AcroPDF.PDF")
       (setq strCLSID (vl-registry-read "HKEY_CLASSES_ROOT\\AcroPDF.PDF\\CLSID"))
       (setq strFile (vl-registry-read (strcat "HKEY_CLASSES_ROOT\\CLSID\\" strCLSID "\\InprocServer32")))
       (findfile strFile))
); acrobat_is_installed

(if (acrobat_is_installed) (do_something))



Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

You should be able to use (dcl_AxControl_GetAxObject) at runtime to determine whether the control loaded successfully.

velasquez