Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting HTML data

0 views
Skip to first unread message

Chris Bornmann

unread,
Dec 5, 1997, 3:00:00 AM12/5/97
to

Is there any way to get the HTML out of a web browser
control? Like WebBrowser1.Text?

I need to write a logger so that sessions can be
played back automatically later, and if I'm to use the
web browser control I'll need to save the HTML that it
displays after a Navigate.

Also, how do I make sense of the PostData parameter of
the BeforeNavigate event?

Thanks!

- chris
chr...@benesoft.com


Walter Overby

unread,
Dec 8, 1997, 3:00:00 AM12/8/97
to

On Fri, 05 Dec 1997 17:02:39 -0800, "Chris Bornmann"
<chr...@benesoft.com> wrote:

>Is there any way to get the HTML out of a web browser
>control? Like WebBrowser1.Text?
>
>I need to write a logger so that sessions can be
>played back automatically later, and if I'm to use the
>web browser control I'll need to save the HTML that it
>displays after a Navigate.

The document supports IPersistFile, I believe. We write the source to
a temp file, then read it back in.

>Also, how do I make sense of the PostData parameter of
>the BeforeNavigate event?

I do not know.

>Thanks!
>
>- chris
>chr...@benesoft.com
>


Walter

Priya

unread,
Dec 10, 1997, 3:00:00 AM12/10/97
to

The way I do it : use a richtextbox control , and use it's LoadFile method
; e.g:
mytextbox.loadfile myurl , 1
You could assign the current location (url) of the webbrowser control to
myurl , and then call the above code.
It may not be very optimal , but it works for me .
Hope this helps.
Regards,
Priya
Trisoft Design
E 30 Connaught Place
New Delhi 110 001 - India
Tel: 372 5407, 373 8651, 373 8653 Fax: 372 5407
Email: pri...@trisoftdesign.com
Internet:http://www.trisoftdesign.com/

Chris Bornmann <chr...@benesoft.com> wrote in article
<01bd01e2$6d2e9d10$0679d6cf@sfo1>...


> Is there any way to get the HTML out of a web browser
> control? Like WebBrowser1.Text?
>
> I need to write a logger so that sessions can be
> played back automatically later, and if I'm to use the
> web browser control I'll need to save the HTML that it
> displays after a Navigate.
>

> Also, how do I make sense of the PostData parameter of
> the BeforeNavigate event?
>

> Thanks!
>
> - chris
> chr...@benesoft.com
>
>

0 new messages