?
Solved

Web Browser Control and Printing:  IE3 vs. IE4

Posted on 1998-08-07
1
Medium Priority
?
207 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
[X]
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
1 Comment
 
LVL 6

Accepted Solution

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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

762 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