|
-
Sep 21st, 2000, 05:44 AM
#1
Thread Starter
Fanatic Member
I don't know if this is possible but I would like to know if it is (and if so how ).
I need some way of saving a web page as an htm file, but also the web page has about 200 links on it to other pages which will also need saving as htm files.
Now I could do this manually (real pain!!) but is there anyway I could automate this with VB??
VB6 sp5, SQL Server 2000, C#
There are no stupid questions. Only stupid people. 
-
Sep 21st, 2000, 06:15 AM
#2
This will save a webpage along with everything on it.
Code:
'Needed: Webbrowser1
webbrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_PROMPTUSER
-
Sep 21st, 2000, 07:11 AM
#3
Thread Starter
Fanatic Member
I will try that as soon as I get the MSDN help installed on my machine, as at the moment I've never used the web browser control.
Cheers.
VB6 sp5, SQL Server 2000, C#
There are no stupid questions. Only stupid people. 
-
Sep 21st, 2000, 02:20 PM
#4
Well, getting started, here are the basic commands you need:
Code:
'Go to the previous webpage
WebBrowser1.GoBack
'Go to the present webpage
WebBrowser1.GoForward
'Go to the default IE home
WebBrowser1.GoHome
'Go to the default search page
WebBrowser1.GoSearch
'Refresh the current webpage
WebBrowser1.Refresh
'Navigate to a webpage
WebBrowser1.Navigate "www.vb-world.net"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|