Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Printing from a Webbrowser

Posted on 1999-08-02
Medium Priority
Last Modified: 2010-04-30
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
           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
Question by:familine
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 12

Accepted Solution

jgv earned 240 total points
ID: 1528872
This should do it:

Author Comment

ID: 1528873
nice ;-)

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question