PDA

Click to See Complete Forum and Search --> : Print/Access Web Browser


May
Jun 15th, 1999, 04:41 PM
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?

jzubrick
Jun 17th, 1999, 06:17 PM
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.