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
Printable View
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
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
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 :)