Solved

ExecWB

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Firemonkey webbrowser scrollbars ? 1 57
Moving (cutting/pasting) controls in a TTabbedNotebook... 7 48
Delphi Firemonkey send email on Android 1 46
Firemonkey Queue list 1 32
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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