Click to See Complete Forum and Search --> : Printing Current web Page
aspguru
Jun 25th, 2002, 07:16 AM
Hi Friends :cool:
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 :confused:
Thanks in Advance
Lethal
Jun 25th, 2002, 06:58 PM
Im assuming you are using the webbrowser control.
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
aspguru
Jun 25th, 2002, 08:16 PM
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 :)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.