Activex feature

Post Reply
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Activex feature

Post 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.
Ciao, best regards,
Ugo
User avatar
Antonio Linares
Site Admin
Posts: 37485
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post by Ugo »

Antonio,

thank you.
Ciao, best regards,
Ugo
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post 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.
Ciao, best regards,
Ugo
User avatar
Antonio Linares
Site Admin
Posts: 37485
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Post by Ugo »

Antonio,
thank you,

With

Code: Select all

...
   ACTIVATE WINDOW oWnd ;
      ON INIT oActiveX:Do( "gotoFirstPage" )
work very well!!!
[/code]
Ciao, best regards,
Ugo
Post Reply