Discussion:
Access to HTML Source through WebBrowser2 ActiveX
(too old to reply)
ashim akbari
2005-06-28 02:45:20 UTC
Permalink
I have dialog based program. And I used "WebBrowser2 ActiveX"

And I want to have html-source of that I been Navigate like "mail.yahoo.com"
as CString or VARIANT or .

How can I do that? Can I have this option with Webbrowser-ActiveX or I have
to use different Tech. and how?



Thank
Brian Cryer
2005-06-28 13:09:15 UTC
Permalink
Post by ashim akbari
I have dialog based program. And I used "WebBrowser2 ActiveX"
And I want to have html-source of that I been Navigate like
"mail.yahoo.com" as CString or VARIANT or .
How can I do that? Can I have this option with Webbrowser-ActiveX or I
have to use different Tech. and how?
Thank
The answer is yes. I use Delphi and you ought to be able to translate from
the following:

document = webBrowser.Document as IHTMLDocument2;
result := document.body.innerHTML;

for questions relating to WebBrowser you would be better off posting to
newsgroiup microsoft.public.inetsdk.programming.webbrowser rather than this
one which is for WinInet.

Hope this helps,

Brian.

www.cryer.co.uk/brian

Continue reading on narkive:
Search results for 'Access to HTML Source through WebBrowser2 ActiveX' (Questions and Answers)
5
replies
My web browser dose'nt open yahoo & some websites?
started 2008-02-17 20:19:17 UTC
security
Loading...