From: Bernard Bout
To: Aldon Walker
Visual FoxPro 6
Active X Controls & OLE Automation
Monday, December 08, 2003 5:36:50 AM
This message was rated by:
Have a read of this article:
HAs a lot of very interesting stuff toeards the latter part of the article about IE.
> 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.
Posted by Aldon Walker @ 12/6/2003 6:18:38 PM
Posted by Bernard Bout @ 12/8/2003 5:36:50 AM
Posted by Boudewijn Lutgerink @ 12/8/2003 7:53:49 AM
Posted by Aldon Walker @ 12/20/2003 6:50:20 PM