Activex feature

Activex feature

Postby Ugo » Sat Aug 12, 2006 11:49 am

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  Expand view
...
   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
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Sat Aug 12, 2006 2:15 pm

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
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ugo » Mon Aug 14, 2006 5:37 am

Antonio,

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

Postby Ugo » Mon Aug 14, 2006 12:02 pm

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
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Postby Antonio Linares » Wed Aug 16, 2006 1:43 am

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
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Ugo » Wed Aug 16, 2006 8:10 pm

Antonio,
thank you,

With
Code: Select all  Expand view
...
   ACTIVATE WINDOW oWnd ;
      ON INIT oActiveX:Do( "gotoFirstPage" )

work very well!!!
[/code]
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 78 guests