Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

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 = "":-\

  • *Gurus*
Posted

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.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...