Solved

ExecWB-Commands of IE Browser Control

Posted on 1998-07-21
5
871 Views
Last Modified: 2008-02-01
The Webbrowser Control of IE3/4 offers a method called ExecWB for executing browser functions, e.g. printing. Is there any complete reference of possible commands (e.g. OLECMDID_PRINT for printing...)? Mainly i'm searching for a possibility to save html-pages.
0
Comment
Question by:2be
  • 2
  • 2
5 Comments
 

Author Comment

by:2be
ID: 1466296
Adjusted points to 50
0
 
LVL 1

Accepted Solution

by:
wford earned 50 total points
ID: 1466297
You can find all the help you need at:

http://www.microsoft.com/msdn/sdk/inetsdk/help/itt/IEProg/WB/Objects/WebBrowser.htm#WebBrowser

and yes there is a save_as command
0
 
LVL 1

Expert Comment

by:wford
ID: 1466298
to clarify a bit, this site does not give any more info that the object browser as far as the specific use of these commands, but it is more that you have before, here is the save command though;

WebBrowser1.ExecWB OLECMDID_SAVEAS, OLECMDEXECOPT_DODEFAULT

and the exact olecmd site:
http://www.microsoft.com/msdn/sdk/inetsdk/help/compdev/active_docs/references/OLECMD.htm#OLECMD
0
 

Author Comment

by:2be
ID: 1466299
Thanx - that's the site i searched for (OLECMD). That was really fast!!!
0
 
LVL 1

Expert Comment

by:BeerMan
ID: 1466300
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER, "", ""    'Ok to Print?

have this command to !
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

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…
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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

895 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

16 Experts available now in Live!

Get 1:1 Help Now