|
-
Dec 18th, 2002, 05:14 PM
#1
Thread Starter
Sleep mode
saving a webpage?
I'm using webbrowser control .I want to save the current web page using (save,save as)and with multiple save file types(web archive,complete,HTML single file,text)exactly like IE.
any help guys
-
Dec 18th, 2002, 05:17 PM
#2
Thread Starter
Sleep mode
SaveFileDialog can do that,if so how plz??
Thanx in advance
-
Dec 18th, 2002, 06:23 PM
#3
Registered User
You can use the System.Net namespace to get the webpage into a stream and then use a BinaryWriter with a FileStream (both from System.Io) to do this. I might have an example at work for you. Need to sleep now though....... post to tell me if you need an example and I'll try to give it in the morning (ie in 10 hours).
-
Dec 19th, 2002, 10:54 AM
#4
yay gay
but if he's using webbrowser control that'd suck because he would have to download the web page all over again...
to get the source code of the webpage open do this:
dim mystring as string
mystring = webbrowser1.document.body.innerhtml
\m/  \m/
-
Dec 19th, 2002, 03:13 PM
#5
Registered User
Correct, I agree that the first part was something that popped out of me without thinking it all through. Doesn't leave out the use of a FileStream to write to and a StreamWriter to do the job though, does it?
-
Dec 20th, 2002, 01:25 PM
#6
Thread Starter
Sleep mode
I couldn't reply your post athley last days .Ok , it's kind of you if you sent me that example?
-
Dec 20th, 2002, 02:41 PM
#7
Registered User
darn, now I'm free for Christmas weekend. :P
hmmm, I'll try to dig something up.
-
Dec 21st, 2002, 11:48 AM
#8
Thread Starter
Sleep mode
I'm sorry Athley , I thought it's ready.
-
Dec 21st, 2002, 06:48 PM
#9
Registered User
Yea it is, but its at work, and I'm on holiday :P
-
Dec 22nd, 2002, 07:49 AM
#10
Thread Starter
Sleep mode
never mind
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
|