IEWEBBROWSER component ExecwB method

zhaozj2021-02-16  51

I have organized the EXECWB method of IEWebBrowser components and hoped to help everyone. 1. 2. Call method. WebBrowser.execwb ncmdid, ncmdexecopt, [pvain], [pvaout] 3. Parameter description. (A) .nCmdID OLECMDID_OPEN = 1, OLECMDID_NEW = 2, OLECMDID_SAVE = 3, OLECMDID_SAVEAS = 4, OLECMDID_SAVECOPYAS = 5, OLECMDID_PRINT = 6, OLECMDID_PRINTPREVIEW = 7, OLECMDID_PAGESETUP = 8, OLECMDID_SPELL = 9, OLECMDID_PROPERTIES = 10, OLECMDID_CUT = 11, OLECMDID_COPY = 12, OLECMDID_PASTE = 13, OLECMDID_PASTESPECIAL = 14, OLECMDID_UNDO = 15, OLECMDID_REDO = 16, OLECMDID_SELECTALL = 17, OLECMDID_CLEARSELECTION = 18, OLECMDID_ZOOM = 19, OLECMDID_GETZOOMRANGE = 20 OLECMDID_UPDATECOMMANDS = 21 OLECMDID_REFRESH = 22 OLECMDID_STOP = 23 OLECMDID_HIDETOOLBARS = 24 OLECMDID_SETPROGRESSMAX = 25 OLECMDID_SETPROGRESSPOS = 26 OLECMDID_SETPROGROGRESSTEXT = 27 OLECMDID_SETTITLE = 28 OLECMDID_SETDOWNLOADSTATE = 29 OLECMDID_STOPDOWNLOAD = 30 The keywords above the top of the browser can find the corresponding options in the browser, let's understand! (b) .ncmdexecopt olecMdexecopt_dodefault = 0, OLECMDEXECOPT_PROMPTUSER = 1, lecmdexecopt_dontpromptuser = 2, Olecmdexecopt_showhelp = 3 For this parameter, in general, select 1 is OK.

This is an example of calling the "Save" function of IE:

Save- Storage

转载请注明原文地址:https://www.9cbs.com/read-25839.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.230, SQL: 9