Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting html file to txt with Internet Explorer 1

Status
Not open for further replies.

Painkiller

Programmer
May 18, 2001
97
NL
Hi all,

Wih the internet explorer it is possible to use the save as menu option to save a html file as a txt file. My question is, is it possible to do this with an InternetExplorer object in VB? Or are there alternatives I can use?

thanks,

Sujesh
 
Try to put the default extension of your file and use the "*.* filter to do that
________
George, M
 
Thanks for your reply, but which method do I use. I looked for a "save as" method, but couldn't find it...
 
U have to had an Microsoft Internet Controls in your controls tab and then name it wb1
Use
wb1.Navigate2 " to navigate before y call the next instruction and after the page is loaded call

wb1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DONTPROMPTUSER, "yourfilename.txt"
________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top