Use of Webbrowser Control in VB6 to read a local HTML file - TechRepublic
Question
July 30, 2007 at 10:37 PM
bob

Use of Webbrowser Control in VB6 to read a local HTML file

by bob . Updated 15 years, 4 months ago

Can anyone help me get the webbrowser control in VB6 to read a local html file?

I have tried for the past 4 days to find the syntax for the navigate command with no luck. I have tried everything I know but nothing works. I keep getting the message…

“This program cannot display the webpage”

So SOMETHING is happening!

I have tried…

webrowser1.navigate (c:\filepath\filename.htm)
webrowser1.navigate (file:///c:/filepath/filename.htm)
webrowser1.navigate (file:///c|/filepath/filename.htm)
webrowser1.navigate (localhost:///c:/filepath/filename.htm)

as well as…

webrowser1.navigate “c:\filepath\filename.htm”
webrowser1.navigate “file:///c:/filepath/filename.htm”
webrowser1.navigate “file:///c|/filepath/filename.htm”
webrowser1.navigate “localhost:///c:/filepath/filename.htm”

Nothing!

Do I need to use anything other than the “navigate” command???

Thanks,
bob…
=======

This discussion is locked

All Comments