FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ActiveX & Internet Explorer Question
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
ActiveX & Internet Explorer Question
Posted: Wed May 13, 2009 07: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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: ActiveX & Internet Explorer Question
Posted: Sat May 16, 2009 06: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

Continue the discussion