temporary html files

dynamic_sysop

Well-known member
Joined
Oct 1, 2002
Messages
1,039
Location
Ashby, Leicestershire.
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 id like to be able to make it so it doesnt have to open a directory , rather navigate from within the app.
ive 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 = "":-\
 
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 wont have a .htm extension.
 
Back
Top