Results 1 to 3 of 3

Thread: Printing Current web Page

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Printing Current web Page

    Hi Friends

    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

    Thanks in Advance

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    3

    Thanks Lethal

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width