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 wont work, but I am looking for what will. Thanks in advance, for your help.
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 wont work, but I am looking for what will. Thanks in advance, for your help.