Page 1 of 1

Activex feature

Posted: Sat Aug 12, 2006 11:49 am
by Ugo
Dear fwh's
I want test the new TActivex class but i don't know where found the
cProgId and the "Do" possibility for the selected Activex!

FE (from TOOO test):

Code: Select all

...
   DEFINE Window oWnd
      oWnd:SetText( "Vemos el PDF desde nuestra app" )
      // oActiveX = TActiveX():New( oWnd, "PDF.PdfCtrl.5" )
      // oActiveX = TActiveX():New( oWnd, "PDF.PdfCtrl.6" )
      oActiveX = TActiveX():New( oWnd, "AcroPDF.PDF.1" )  AcroRead 7.0
      oWnd:oClient = oActiveX
      oActiveX:Do( "LoadFile", "c:\_.pdf" )
      oActiveX:Do( "SetCurrentPage", 1 )
   ACTIVATE WINDOW oWnd ;
      ON INIT oActiveX:Do( "Show" )
And "oActiveX:Do( "Show" )" return error:

Descrizione: Error BASE/1004 No exported method: Show
Args:

Stack Calls
===========
Called from: => ACTXINVOKE(0)
Called from: ACTIVEX.prg => TACTIVEX:DO(87)
Called from: Main.prg => (b)MAIN(112)
Called from: WINDOW.prg => TWINDOW:ACTIVATE(879)
Called from: Main.prg => MAIN(112)


Thanks in advance.

Posted: Sat Aug 12, 2006 2:15 pm
by Antonio Linares
Ugo,

You may use Microsoft free OleView to inspect the ActiveX that you have installed on your computer:

http://hyperupload.com/download/02b7308 ... w.zip.html

From that application you can also inspect the available properties and methods. Besides that, you may google for info about a specific ActiveX and read some docs and samples about it.

Posted: Mon Aug 14, 2006 5:37 am
by Ugo
Antonio,

thank you.

Posted: Mon Aug 14, 2006 12:02 pm
by Ugo
Antonio,
...
From that application you can also inspect the available properties and methods
...
With OleView I find Acrobat ActiveX (i think :? ) but I don't found the methods and properties.

Can you help me?

Thanks, in advance.

Posted: Wed Aug 16, 2006 1:43 am
by Antonio Linares
Ugo,

Right click on the name of the activex and select "View Type Information":
Image
Anyhow, I recommend you to google for docs and samples about it. Search for its ProgID.

Posted: Wed Aug 16, 2006 8:10 pm
by Ugo
Antonio,
thank you,

With

Code: Select all

...
   ACTIVATE WINDOW oWnd ;
      ON INIT oActiveX:Do( "gotoFirstPage" )
work very well!!!
[/code]