Download a Webpage

Vb Gangsta

Freshman
Joined
Aug 31, 2003
Messages
27
hi, After my Ax_Broswer1 navigates to a webpage i need to download it as a .htm file. SO if i wanted to go to the program directory i could click the .htm and it whould be displayed. I actually want to save it to the hard drive in the directory where it is installed. I know this is possible cause i have seen it done. Please help me. THanks you
 
You can use the System.Net.WebClient class and its DownloadFile method to download files to your hard drive.

Use Client.ExecutablePath to return the location of your app.
 
The Problem is that when ever I use a webclient I am not logged into the website that i need to be. That is why i have to download the page form the broswer then pharse it from the file. DO you know how to download from the Broswer?
 
Back
Top