We have an application that stores HTML documents in the database. The idea
is to retreive the document and display it in an Access form or Access
report. Using WebBrowser to point to a web site or a text file works fine
but when the HTML string (read from the database) is passed to it, we get an
error.
Are HTML strings not allowed to be passed to WebBrowser? Or we doing
something else wrong? The idea of writing the string to a text file and
then passing that path to WebBrowser could be done but doesn't seem very
elegant and would be slow.
Any ideas?
Thanks,
Al Kaufman
Stephen Lebans - 27 Aug 2004 03:04 GMT
If I remember correctly you would write your html string to the
InnerHTML prop of the Web Browser object.
Me.NameOFWebBrowserCOntrol.object.Document.body.innerHTML = somestring
Have a look at the HTML Editor on my site here:
http://www.lebans.com/htmleditor.htm
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
> We have an application that stores HTML documents in the database. The idea
> is to retreive the document and display it in an Access form or Access
[quoted text clipped - 12 lines]
>
> Al Kaufman