- Home
·
- Internet/HTML
·
- Print the contents of a web browser control from a VB application.
Print the contents of a web browser control from a VB application.
Print the contents of a web browser control from a VB application.
Rate Print the contents of a web browser control from a VB application.
(1(1 Vote))
Dim eQuery As OLECMDF
On Error Resume Next
eQuery = WebBrowser1.QueryStatusWB(OLECMDID_PRINT)
If Err.Number = 0 Then
If eQuery And OLECMDF_ENABLED Then
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, "", ""
Else
MsgBox "The print command is currently disabled."
End If
End If
End Sub
Print the contents of a web browser control from a VB application. Comments
No comments yet — be the first to post one!
Post a Comment