Executes a WebBrowser control command on the log control.
Object.ExecWB ( enOleCmdId, enOleCmdExecOpt [, vIn] [, vOut] )
The ExecWB method syntax has the following parts:
Name |
Type |
Description |
Object |
ALog |
ALog control |
enOleCmdId |
Val enumALogOleCmdId |
An integer specifying the command to execute. |
enOleCmdExecOpt |
Val enumALogOleCmdExecOpt |
An integer specifying the command options. |
pvIn |
[Var] Variant |
Optional. Specifies command input arguments. |
pvOut |
[Var] Variant |
Optional. Receives command output arguments. |
enumALogOleCmdId can be one of the following:
Name |
Value |
Description |
alogOleCmdIdOpen |
1 |
Open |
alogOleCmdIdNew |
2 |
New |
alogOleCmdIdSave |
3 |
Save |
alogOleCmdIdSaveAs |
4 |
Save As |
alogOleCmdIdSaveCopyAs |
5 |
Save Copy As |
alogOleCmdIdPrint |
6 |
|
alogOleCmdIdPrinPreview |
7 |
Print Preview |
alogOleCmdIdPageSetup |
8 |
Page Setup |
alogOleCmdIdSpell |
9 |
Spell |
alogOleCmdIdProperties |
10 |
Properties |
alogOleCmdIdCut |
11 |
Cut |
alogOleCmdIdCopy |
12 |
Copy |
alogOleCmdIdPaste |
13 |
Paste |
alogOleCmdIdPasteSpecial |
14 |
Paste Special |
alogOleCmdIdUndo |
15 |
Undo |
alogOleCmdIdRedo |
16 |
Redo |
alogOleCmdIdSelectAll |
17 |
Select All |
alogOleCmdIdClearSelection |
18 |
Clear Selection |
alogOleCmdIdZoom |
19 |
Zoom |
alogOleCmdIdGetZoomRange |
20 |
Get Zoom Range |
alogOleCmdIdUpdateCommands |
21 |
Update Commands |
alogOleCmdIdRefresh |
22 |
Refresh |
alogOleCmdIdStop |
23 |
Stop |
alogOleCmdIdHideToolBars |
24 |
Hide Toolbars |
alogOleCmdIdSetProgressMax |
25 |
Set Progress Max |
alogOleCmdIdSetProgressPos |
26 |
Set Progress Position |
alogOleCmdIdSetProgressText |
27 |
Set Progress Text |
alogOleCmdIdSetTitle |
28 |
Set Title |
alogOleCmdIdSetDownLoadState |
29 |
Set Download State |
alogOleCmdIdStopDownLoad |
30 |
Stop Download |
alogOleCmdIdOnToolBarActivated |
31 |
On Toolbar Activated |
alogOleCmdIdFind |
32 |
Find |
alogOleCmdIdDelete |
33 |
Delete |
alogOleCmdIdHttpEquiv |
34 |
Http Equivalent |
alogOleCmdIdHttpEquivDone |
35 |
Http Equipvalent Done |
alogOleCmdIdEnableInteraction |
36 |
Interaction |
alogOleCmdIdOnUnload |
37 |
On Unload |
alogOleCmdIdPropertyBag2 |
38 |
Property Bag 2 |
alogOleCmdIdPreRefresh |
39 |
Pre-Refresh |
enumALogOleCmdExecOpt can be one of the following:
Name |
Value |
Description |
alogOleCmdExecOptDoDefault |
0 |
Do Default |
alogOleCmdExecOptPromptUser |
1 |
Prompt User |
alogOleCmdExecOptDontPromptUser |
2 |
Don't Prompt User |
alogOleCmdExecOptShowHelp |
3 |
Show Help |
Executes a command and returns the status of the command execution using the IOleCommandTarget interface. See Microsoft WebBrowser documentation for more information.
The following example will prompt the user to select a printer and print the content of the log control:
log1.ExecWB(alogOleCmdIdPrint, alogOleCmdExecOptDoDefault)
The following example will prompt the user to save the content of the log control to a file with default name and location (of c:\test.txt):
log.ExecWB(alogOleCmdIdSaveAs, alogOleCmdExecOptPromptUser, "c:\\test.txt")