I would like to know if Adobe is already installed before execute load() of object of TActiveX() ?
I have looking for a solution but I dont foud it, like this in FiveWin:
Code: Select all
Function test PDFActivex(oWnd)
MyProgID := ""
if IsActivex( "PDF.PdfCtrl.1" ); MyProgID := "PDF.PdfCtrl.1"; endif
if IsActivex( "PDF.PdfCtrl.2" ); MyProgID := "PDF.PdfCtrl.2"; endif
if IsActivex( "PDF.PdfCtrl.3" ); MyProgID := "PDF.PdfCtrl.3"; endif
if IsActivex( "PDF.PdfCtrl.4" ); MyProgID := "PDF.PdfCtrl.4"; endif
if IsActivex( "PDF.PdfCtrl.5" ); MyProgID := "PDF.PdfCtrl.5"; endif
if IsActivex( "PDF.PdfCtrl.6" ); MyProgID := "PDF.PdfCtrl.6"; endif
if IsActivex( "PDF.PdfCtrl.7" ); MyProgID := "PDF.PdfCtrl.7"; endif
if Empty( MyProgID )
MsgStop( 'No PDF Activex installed' )
return .f.
endif
ActiveX = TActiveX():New( oWnd, MyProgID )
return .t.Error WINOLE/1009 No exported method: LOADFILE (DOS Error -2147352570)
Called from TOLEAUTO:LOADFILE(0)
Called from FOPENACTIVEX(69)