Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Aldon Walker
  Where is Aldon Walker?
 Aldon Walker
Subject: VFPCOM
Thread ID: 34022 Message ID: 34022 # Views: 2 # Ratings: 0
Version: Visual FoxPro 6 Category: Active X Controls & OLE Automation
Date: Saturday, December 06, 2003 6:18:38 PM         

I am using Foxpro 6 and the VPFCOM utility to control an instance of the InternetExplorerObject. I have upgraged to IE 6 with service pack 1.

I have used the familiar code

oIE = CREATEOBJECT("internetexplorer.application")
oComUtil = create("vfpcom.comutil")
cFile = SYS(2023) + "\events1.txt"

to export the IE events to a VFP class in the text file. When I compare the exposed events in the text file to those from the microsost documentation of the InternetExploer object, I don't see certain events such as the DocumentComplete, NavigateComplete2, the new NavigateError, and some others in the documentation list. Does anyone know why these events do not appear?

I use the BindEvents methods of the VPFCOM utility to bind IE events to those in the exported VPF class. What I need is a way to know when a page I navigate to is fully completed. It would seem the event DocumentComplete is the logical choice but it either does not fire or I am not referencing it correctly. I have tried adding a DocumentComplete method to the exported class but it is not accessed in my test.

I know some combination of the READYSTATE property and the DownloadComplete event may help me, but the DocumentComplete event is what I want. From searching microsoft and the internet, I know of some problems with the DocumentComplete event but I have upgraded to IE 6 SP1 as recommended.

Can anyone offer any suggestions?

Regards and thanks in advance.


VFPCOM Posted by Aldon Walker @ 12/6/2003 6:18:38 PM
RE: VFPCOM Posted by Bernard Bout @ 12/8/2003 5:36:50 AM
RE: VFPCOM Posted by Boudewijn Lutgerink @ 12/8/2003 7:53:49 AM
RE: VFPCOM Posted by Aldon Walker @ 12/20/2003 6:50:20 PM