Solved

ExecWB

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

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

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

17 Experts available now in Live!

Get 1:1 Help Now