Printing from a Webbrowser

Hi all, we were using this code to print from a Webbrowser, but the problem we have is when the Print Screen is shown, we can't send any keys....

    Dim equery As OLECMDF
    On Error Resume Next
    equery = WebBrowser1.QueryStatusWB(OLECMDID_PRINT)
     If Err.Number <> 0 Then
        MsgBox "Error:" & Err.Description
     End If
     If equery And OLECMDF_ENABLED Then
        WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, "", ""
           SendKeys ("~")
     End If

So, if it is possible to sendkeys to this screen, or do you have any other source code to print a WEB page from the Webbrowser.... this must be a "silence" screen or better, not shown!!!! Hope u can understand ;-) Thanx
familineAsked:
Who is Participating?
 
jgvConnect With a Mentor Commented:
This should do it:
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER
0
 
familineAuthor Commented:
nice ;-)
0
All Courses

From novice to tech pro — start learning today.