|
-
Aug 20th, 2000, 02:01 PM
#1
Thread Starter
New Member
I'd like to programmize a function to preview a Web Page and I'd like the result to look like the Windows 98 Explorer HTML preview. How can I do ?
Thanks a lot !
-
Aug 20th, 2000, 10:57 PM
#2
I am not sure about VB6 but Click Project > Components (ctrl + t) > Microsoft Internet Tools. Check it and add it to your form. It is now the Webbrowser Control.
And here is how to use it:
Code:
Private Sub Form_Load()
Webbrowser1.Navigate "http://www.vb-world.net"
End Sub
If you want the source of that html file to be in a Textbox:
Code:
Text1.Text = Webbrowser1.Document.documentElement.innerHTML
-
Aug 21st, 2000, 12:08 AM
#3
I think he wants to Preview it, you know, make it small.
-
Aug 21st, 2000, 01:19 AM
#4
I knew that Dennis..I was jus' testing you .
Well, I looked in the Object Browser and here is what I found: OLECMDID_PRINTPREVIEW
How to use it:
Code:
WebBrowser1.ExecWB OLECMDID_PRINTPREVIEW,OLECMDEXECOPT_PROMPTUSER
-
Aug 21st, 2000, 04:33 AM
#5
AAAH! I knew there had to be a use for that thing called the object browser 
-
Aug 21st, 2000, 06:34 AM
#6
Addicted Member
Hi,
This is the same sort of thing that I have been looking for, but how do I use it? I keep getting the error message:
Method 'ExecWB' of object 'IwebBrowser2' failed.
What do I have to do to get the preview?
Cheers,
Shaun
Web/Application Developer
VB6 Ent (SP5), Win 2000,SQL Server 2000
-
Aug 21st, 2000, 07:51 AM
#7
Thread Starter
New Member
I'd like to thank all of you and I'm gonna try this immediately !!!
Fabien.
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
|