The ReadyState property should tell you when it's loaded:
typedef enum tagREADYSTATE { READYSTATE_UNINITIALIZED = 0, READYSTATE_LOADING = 1, READYSTATE_LOADED = 2, READYSTATE_INTERACTIVE = 3, READYSTATE_COMPLETE = 4 } READYSTATE;
You should check for oIE.ReadyState=4.
Scott
> -----Original Message----- > From: profox-admin .AT. leafe .DOT com [mailto:profox-admin@leafe.com] > On Behalf Of Reynolds, Michael > Sent: Friday, February 28, 2003 5:00 PM > To: 'profox .AT. leafe .DOT com' > Subject: RE: Easy HTML to text function? > > > I think I found the trouble. The variable being set to the > document contents is attempting to get set before IE > retrieves the web page. If done line-by-line, and waiting > for the page to display, then you can set the InnerText. > > Is there a way to sense whether IE has retrieved the entire page? > > ---Michael Reynolds
©2003 Scott King |