Solved

Creating a Browser Application

Posted on 1998-05-28
5
117 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 30 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now