[Help]Printing Web Page[Solved]
Ok guys, i am making a web browser and i want to print the entire page of the web when i click button 2, here is my code and look at my error
[PHP]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Shell ("rundll32.exe C:\WINDOWS\SYSTEM\MSHTML.DLL,PrintHTML") & _ Webbrowser1.url , vbMinimizedFocus
End Sub
End Class[/PHP]

Try this
Edit:
Modified it
Shell("rundll32.exe C:\WINDOWS\SYSTEM\MSHTML.DLL,PrintHTML Webbrowser.url", vbMinimizedFocus)
Check my modification in my last post, Webbrowser was placed in appwin style part of the code, should be in the path part.
You may get a dll error, in which case, change system to system32
so
[php]
Shell("rundll32.exe C:\WINDOWS\SYSTEM32\MSHTML.DLL,PrintHTML Webbrowser.url", vbMinimizedFocus)
[/php]
Ok the error is gone, i put it into button 2. When i click it, it doesnt print the webpage i am on. help?
Out of curiosity , did you try
[php]
WebBrowser1.Print()
[/php]
?
Thanks. Answer solved
/close please
Webbrowser1.showprintdialog was it I guess, well already answered sorry for reposting ^.-