problem with navigating axWebBrowser.

  • Thread starter Thread starter Dibs
  • Start date Start date
D

Dibs

Hi chaps,

I'm trying to use the COM microsoft web browser to show html I'm generating
in my app.
Using AxWebBrowser1.Navigate("about:" & htmlString) works fine as long as
the html is not too long. So this works fine in htmlString

<html>
<head>
<title>A Fine Title</title>
</head>
<body>
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble
wobble wobble wobble wobble

</body>
</html>

but put another wobble in and it refuses to display it. Assuming this is
some dastardly interop string thing. A post a while back said something
about IPersistStreamInit but I got baffled.
I could just write it out to a file and navigate too that but if I could
avoid slow file IO, potential permissions problems and general untidiness
that would be good.
Any clues gratefully received

James
 
Hi James

I have just turned up this thread which uses IPersistStreamInit to load from
a string:

http://groups.google.com/[email protected]&rnum=8

I don't know if this is the one you are referring to (there are few others),
but if there is anything that you are not clear about post back and I (or
someone) will try to answer.

HTH

Charles
 
Back
Top