Solved

printing WebBrowser Control

Posted on 1998-07-13
4
131 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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link a textbox in excel to a cell with more than 255 characters. 5 94
Determine Range to Select 5 49
vb6 connector to SQL Server 2 37
Visual Studio 2005 text editor 10 39
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

831 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