|
|
Title | Print and display a Print Preview for a WebBrowser control |
Keywords | print, print preview, WebBrowser, Web page, URL |
Categories | Controls |
|
|
Call the WebBrowser's ExecWB method passing it the command constant OLECMDID_PRINT or OLECMDID_PRINTPREVIEW.
|
|
Private Sub mnuFilePrint_Click()
WebBrowser1.ExecWB OLECMDID_PRINT, _
OLECMDEXECOPT_PROMPTUSER
End Sub
Private Sub mnuFilePrintPreview_Click()
WebBrowser1.ExecWB OLECMDID_PRINTPREVIEW, _
OLECMDEXECOPT_PROMPTUSER
End Sub
|
|
|
|
|
|