OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on May 24, 2009, 07:23:41 AM

Title: Adobe PDF Reader
Post by: velasquez on May 24, 2009, 07:23:41 AM
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
Title: Re: Adobe PDF Reader
Post by: Fred Tomke on May 24, 2009, 12:06:37 PM
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
Title: Re: Adobe PDF Reader
Post by: owenwengerd on May 24, 2009, 03:32:47 PM
You should be able to use (dcl_AxControl_GetAxObject) at runtime to determine whether the control loaded successfully.
Title: Re: Adobe PDF Reader
Post by: velasquez on May 25, 2009, 04:17:59 AM
Thank you very much.