Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

Opening generated html file name in web browser window in vb 2010

$
0
0
Hi Folks,

I Have VB 2010. I use a set of list boxes that generates the location for the proper html file that I want to open up in my web browser named “wbChapter”. I want the final listbox to be able to automatically load the generated html file location which is stored in a variable called “sHTML”. “sHTML” contains the string file location for the html file I want to open in the web browser(wbChapter). It is already in the format that should get us to the file. For example, sHTML = “../Chapters/Gen/Gen38.html” or sHTML = “../Chapters/Dan/Dan10.html”

What I cannot seem to figure out is how to have the browser window open up the html code in the browser window. Can I clear the previous information and just use a couple of commands like:

wbChapter.Document(Clear)

wbChapter.Document = sHTML

wbChapter.Document.Show

Obviously I know these won’t work, but I am looking for what will. Thanks in advance, for your help.

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>