Leaders dynamic_sysop Posted October 6, 2002 Leaders Posted October 6, 2002 is it possible in vb.net or vb6 to run an app that uses a browser with a user created html without having the html file appear on the drive? for exapmle open App.LogPath & "\test.htm" for output as #1 Print #1,"classid here" Print #1,"info" Print #1,"more info" Close #1 webbrowser.Navigate App.LogPath & "\test.htm" this puts the test.htm in my C:\ directory but i'd like to be able to make it so it doesnt have to open a directory , rather navigate from within the app. i've tried making a sub and telling it the source of the html then telling the browser to navigate the sub but it returns that the sub = "":-\ Quote
*Gurus* divil Posted October 7, 2002 *Gurus* Posted October 7, 2002 The best way to do this would be to use the proper temporary files place on your hard drive to create the file. You can use System.IO.Path.GetTempPath to get this path, or System.IO.Path.GetTempFileName to automatically create a file there with a unique name, but it won't have a .htm extension. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.