Solved

ExecWB

Posted on 1998-10-29
3
790 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
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 100 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 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

14 Experts available now in Live!

Get 1:1 Help Now