ExecWB Method
.NET Framework 3.0
Executes a command and returns the status of the command execution using the IOleCommandTarget interface.
Syntax
object.ExecWB( _
cmdID As OLECMDID, _
cmdexecopt As OLECMDEXECOPT, _
[pvaIn As Variant,] _
[pvaOut As Variant])
Parameters
- cmdID
- A Long that represents the identifier of the command to execute. For more information on command identifiers, see OLECMDID Help.
- cmdexecopt
- An OLECMDEXECOPT value that specifies the command options.
- pvaIn
- Optional. A Variant used for specifying command input arguments.
- pvaOut
- Optional. A Variant used for specifying command output arguments.
Remarks
Certain commands (OLECMDID_CUT, OLECMDID_COPY, and OLECMDID_PASTE) are only available if URLACTION_SCRIPT_SAFE_ACTIVEX and URLACTION_SCRIPT_PASTE are set to URLPOLICY_ALLOW.
Applies To
InternetExplorer, WebBrowser
See Also
Enumerations
Enumerations can be found here
http://msdn.microsoft.com/en-us/library/ms691264.aspx
- 2/20/2012
- TheotherMark
Help needed for pvaIn argument
pvaIn argument takes safe array that has 5 values in c++ as per the information at http://msdn.microsoft.com/en-us/library/Aa769937.aspx. Can anyone please provide a code snippet in C# that does the same job.
Also, can the pvaIn argument take in a print template along with print_waitforcompletion? Please advice..
- 1/25/2012
- Keerthi Raju
saveas no prompt
I'm trying to figure out a way to execute the SAVEAS command and pass it the filename to save as without prompting the user. Possible? Trying to save a PDF file that is loaded within the browser. I tried this -
ExecWB OLECMDID_SAVEAS,OLECMDEXECOPT_DONTPROMPTUSER,"c:\temp\test.pdf"
but it doesn't recognize my input param and it still prompts the user.
ExecWB OLECMDID_SAVEAS,OLECMDEXECOPT_DONTPROMPTUSER,"c:\temp\test.pdf"
but it doesn't recognize my input param and it still prompts the user.
- 12/2/2011
- mr_az_coder
