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

x
?
Solved

Creating a Browser Application

Posted on 1998-05-28
5
Medium Priority
?
125 Views
Last Modified: 2010-05-03
I'm using Microsoft Internet Controls to create a small browser program.  What I don't know is how to set up a print button and print out the current web page.
0
Comment
Question by:Jagar
  • 3
  • 2
5 Comments
 
LVL 6

Accepted Solution

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

0
 
LVL 2

Author Comment

by:Jagar
ID: 1461928
Thanks were can I get a full list of everything ExecWB can do I tried hitting F1 on it, but said No Help Available.
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1461929
You know, it's the oddest thing about that.  I've yet to figure out why they never shipped a help file.

Anyway, where I get my information is from the object browser.
(Look for the constants beginning with the letters "OLECMD")
0
 
LVL 2

Author Comment

by:Jagar
ID: 1461930
OK now how do I figure out what they do.  Some a pretty obvious, but other I'm not sure about.  Any ideas???
0
 
LVL 6

Expert Comment

by:clifABB
ID: 1461931
You might try the MSDN site located at http://www.microsoft.com/msdn/
You can search the MSDN Library Online there.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…
Suggested Courses

916 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