Solved

Web Browser Control and Printing:  IE3 vs. IE4

Posted on 1998-08-07
1
179 Views
Last Modified: 2010-04-30
Hello,

I have an application that uses the IE web browser control.  I let users print the contents of the web browser control by sending ^P to the browser.  If I compile the executable with IE3 on my system, users who have IE3 can print--^P works.  However, when I compile on a system that has IE4 (with sp 1), users who have IE4 can't print--they just get a beep.

Is there another method for printing the contents of the web browser if you are using IE4?

Thanks much in advance,

iwright@irrc.org
0
Comment
Question by:iw
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 100 total points
ID: 1468244
Use this code:
Private Sub Command1_Click()
  WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT
End Sub
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

932 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now