Results 1 to 8 of 8
  1. #1
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful

    Exclamation [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]

    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-

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    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.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  3. #3
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    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-

  4. #4
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    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.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  5. #5
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    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-

  6. #6
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Out of curiosity , did you try

    [php]
    WebBrowser1.Print()
    [/php]

    ?


     


     


     



    The Most complete application MPGH will ever offer - 68%




  7. The Following User Says Thank You to NextGen1 For This Useful Post:

    zmansquared (03-12-2010)

  8. #7
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    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-

  9. #8
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Webbrowser1.showprintdialog was it I guess, well already answered sorry for reposting ^.-



Similar Threads

  1. [Info] Helpful tool for translating web pages
    By dragon73 in forum Dragon Nest Discussions
    Replies: 2
    Last Post: 08-30-2011, 09:48 AM
  2. [HELP] Print Function & Print Preview[Solved]
    By Jàzzà_ in forum Visual Basic Programming
    Replies: 3
    Last Post: 02-07-2011, 04:37 PM
  3. [Help] Program hangs when using web requests?[Solved]
    By master131 in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-23-2010, 01:26 AM
  4. [Help]Web browser[Solved]
    By Flash in forum Visual Basic Programming
    Replies: 9
    Last Post: 08-30-2010, 02:29 AM
  5. [Help]Print Text Box [Solved]
    By zmansquared in forum Visual Basic Programming
    Replies: 7
    Last Post: 03-10-2010, 06:56 PM