Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

printing WebBrowser Control

Posted on 1998-07-13
4
Medium Priority
?
137 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 1000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
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…

971 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