Solved

ExecWB

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

775 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