I want to open an html page from within a VB app that is stored on my PC. I am using the following code to make it happen
lngRtn = Shell("rundll32.exe url.dll,FileProtocolHandler C:\Envision\Forms & Documents\Index.htm")
this will work but I have 2 problems
First IE opens the html page but it is minimized, I
can't see it until I go to my tool bar and maximize
it. How can I fix this
Second I want to be able to execute the code above using
a variable for the HTML file path. I have the
following code to do this
lngRtn = Shell("rundll32.exe url.dll,FileProtocolHandler StrIndex_HTML_Path")
the variable StrIndex_HTML_Path contains the path of the HTML page. This line of code does not work, no IE window appears and I don't receive an error msg. Can I use this code using a variable for the HTML file path?
Thanks
lngRtn = Shell("rundll32.exe url.dll,FileProtocolHandler C:\Envision\Forms & Documents\Index.htm")
this will work but I have 2 problems
First IE opens the html page but it is minimized, I
can't see it until I go to my tool bar and maximize
it. How can I fix this
Second I want to be able to execute the code above using
a variable for the HTML file path. I have the
following code to do this
lngRtn = Shell("rundll32.exe url.dll,FileProtocolHandler StrIndex_HTML_Path")
the variable StrIndex_HTML_Path contains the path of the HTML page. This line of code does not work, no IE window appears and I don't receive an error msg. Can I use this code using a variable for the HTML file path?
Thanks