ActiveX & Internet Explorer Question

ActiveX & Internet Explorer Question

Postby Randal » Wed May 13, 2009 7:14 pm

All,

I'm using ActiveX to navigate to a secure webpage where the user enters some information and clicks a button that redirects them to another window with the results of the transaction. I need to read the results containted is this IE window.

I'm trying to view the contents of oActiveX:GetProp("document") in the valid clause before the object is closed however, oActiveX:GetProp("document") returns a numeric value. How can I grab the results in this window? What am I doing wrong?

I've also tried using CreateObject which directs me to the first window but I cannot figure out a way to get the contents of the document body of the 2nd window.

Any help or suggestions would be greatly appreciated.

Using xHarbour 9/2008 and FWH 8.01.

Thanks,
Randal
Randal
 
Posts: 260
Joined: Mon Oct 24, 2005 8:04 pm

Re: ActiveX & Internet Explorer Question

Postby Antonio Linares » Sat May 16, 2009 6:48 pm

Randal,

> oActiveX:GetProp("document") returns a numeric value

This has been enhanced in FWH 9.04.

As a workaround you may try:

oDocument = TOleAuto():New( oActiveX:GetProp("document") )

also, new FWH 9.04 Class TActiveX directly allows:

oDocument = oActiveX:document
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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