Solved

printing WebBrowser Control

Posted on 1998-07-13
4
134 Views
Last Modified: 2010-05-03
I have used the Web Browser control in my app and now I want to print the web screens.
When I try to print the form that the control is attached to all I get is the control.

Any suggestions ??
0
Comment
Question by:jimbo1
[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
  • 2
4 Comments
 
LVL 6

Accepted Solution

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

0
 
LVL 1

Expert Comment

by:wford
ID: 1465588
Just to help, ClifABB passed this referance on to me, and I think you may find it helpful
 
http://www.microsoft.com/msdn/sdk/inetsdk/help/itt/IEProg/WB/Objects/WebBrowser.htm#WebBrowser

It is basicly the help file for the webbrowser object including ExecWB
0
 

Author Comment

by:jimbo1
ID: 1465589
Thanks so much clifabb. I bumped up the points for your rapid response.
20 minutes and I had my answer !!!!

Thanks again.

Thank you also to wford for your comment.

0
 
LVL 6

Expert Comment

by:clifABB
ID: 1465590
And thank you for the added points.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month6 days, 1 hour left to enroll

627 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