H
harry kitaun
well, I know that playing with an axwebbrowser is almost an esoteric
exercise but i can't solve this.
I'm writing an automation tool to fetch some data from pages in our
intranet (nothing more complex than navigate to the web, fill in
user&pass and retrieve the data), but the AxWebBrowser throws an
exception in the next lines:
....
IHTMLDocument2 doc_tmp=(IHTMLDocument2) this.axWebBrowser1.Document;
IHTMLFramesCollection2 frames = doc_tmp.frames;
....
but only if this lines are outside of the DocumentComplete2 event
handler. What's wrong? i've tried to access data in a single-framed page
and works correctly in an arbitrary method (not event handler). why i
cannot access the api if the web is multiframed?
exercise but i can't solve this.
I'm writing an automation tool to fetch some data from pages in our
intranet (nothing more complex than navigate to the web, fill in
user&pass and retrieve the data), but the AxWebBrowser throws an
exception in the next lines:
....
IHTMLDocument2 doc_tmp=(IHTMLDocument2) this.axWebBrowser1.Document;
IHTMLFramesCollection2 frames = doc_tmp.frames;
....
but only if this lines are outside of the DocumentComplete2 event
handler. What's wrong? i've tried to access data in a single-framed page
and works correctly in an arbitrary method (not event handler). why i
cannot access the api if the web is multiframed?