|
-
Jun 25th, 2002, 07:16 AM
#1
Thread Starter
New Member
Printing Current web Page
Hi Friends
Want to print the current web page without Print Dialogue Box. We have Print Class and many related methods. Can any one help me out, have been trying for last 2 days without success
Thanks in Advance
-
Jun 25th, 2002, 06:58 PM
#2
PowerPoster
Im assuming you are using the webbrowser control.
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxWebBrowser1.Navigate2("www.vbworld.com")
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
AxWebBrowser1.ExecWB(SHDocVw.OLECMDID.OLECMDID_PRINT, SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_DONTPROMPTUSER)
End Sub
-
Jun 25th, 2002, 08:16 PM
#3
Thread Starter
New Member
Thanks Lethal
Thanks for your reply ! I guess I put the question in wrong way. My idea was printing report where by there would be numerous pages. I wanted that my code should take care of the line breaks, margin, fonts etc. The same can be done using various methods of Print Class but not much idea
Thanks anyway , would appreciat if you have solution to above
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
|