Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / ActiveX Controls / August 2004

Tip: Looking for answers? Try searching our database.

WebBrowser--passing an HTML string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al Kaufman - 25 Aug 2004 16:10 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.