Results 1 to 2 of 2

Thread: Print/Access Web Browser

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Australia
    Posts
    1

    Post

    I am fairly new to VB and am using VB version 6.
    My form is very simple. It just have a web browser, a print button and an exit button.
    My questions are:
    1) How do I program it to be able to print out what is on the web browser screen?
    2) How do I obtain the content of the current
    web browser page which was on display?
    3) How do I disable the right mouse click button on the web browser screen?

  2. #2
    New Member
    Join Date
    Jun 1999
    Location
    Dallas, Texas, USA
    Posts
    2

    Post

    Use this code to print your browser window.

    Private Sub Command1_Click()
    olecmd = 6
    oleparam = 1

    On Error Resume Next
    WebBrowser1.ExecWB olecmd, oleparam

    End Sub

    You can also change the print feature by changing the value of oleparam. The number 1 shows the print dialog box.

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