Try this
Edit:
Modified it
Shell("rundll32.exe C:\WINDOWS\SYSTEM\MSHTML.DLL,PrintHTML Webbrowser.url", vbMinimizedFocus)
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]
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Try this
Edit:
Modified it
Shell("rundll32.exe C:\WINDOWS\SYSTEM\MSHTML.DLL,PrintHTML Webbrowser.url", vbMinimizedFocus)
Last edited by NextGen1; 03-11-2010 at 10:31 PM.
Nope, didnt work
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
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]
Last edited by NextGen1; 03-11-2010 at 10:47 PM.
Ok the error is gone, i put it into button 2. When i click it, it doesnt print the webpage i am on. help?
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Out of curiosity , did you try
[php]
WebBrowser1.Print()
[/php]
?
zmansquared (03-12-2010)
Thanks. Answer solved
/close please
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
Webbrowser1.showprintdialog was it I guess, well already answered sorry for reposting ^.-