?
Solved

ExecWB

Posted on 1998-10-29
3
Medium Priority
?
815 Views
Last Modified: 2012-06-21
Anyone know how to use the WebBrowser.ExecWB method.
it has parameters OLECMDID, what are the ID values for the commands? and what commands does it reference?.
0
Comment
Question by:npatel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Expert Comment

by:Thaddy
ID: 1344978
You can find the Webbrowser Command ID's in the typelibrary
importfile SHDocVw_TLB.PAS
(It's in your .\imports directory)
Examples:
  OLECMDID_OPEN = $00000001;//Opens a file f.e. html
  OLECMDID_NEW = $00000002;//new
  OLECMDID_SAVE = $00000003;//
  OLECMDID_SAVEAS = $00000004;
  OLECMDID_SAVECOPYAS = $00000005;

0
 

Author Comment

by:npatel
ID: 1344979
Thanks, but I still need information on how to use ExecWB?
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 300 total points
ID: 1344980
Hi npatel,

procedure TForm1.Button1Click(Sender: TObject);
var
   Options: Longint;
   ID: Longint;
   NullVariant:OleVariant;
begin
    ID := OLECMDID_PRINT;
    Options := OLECMDEXECOPT_PROMPTUSER;
    WebBrowser1.ExecWB(ID, Options,NullVariant,NullVariant);
end;

Zif.

ps. ExecWB is only implemented in IE4, but I guess you already know that.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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