Ver Mensaje Individual
  #2  
Antiguo 01-07-2003
Avatar de __hector
[__hector] __hector is offline
Miembro Premium
 
Registrado: may 2003
Ubicación: Santo Domingo, Rep. Dom.
Posts: 1.075
Reputación: 25
__hector Va por buen camino
Extraido del MSDN de Microsoft:

Código:
 
ExecWB Method  

Executes a command on an OLE object 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
Long that represents the identifier of the command to execute. For more information on command identifiers, see MSHTML Command Identifiers. 
cmdexecopt
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.
Entonces, entendemos que es una especie de interfaz para ejecutar comandos sobre un objeto OLE (en este caso, un WebBrowser)

Una lista de parametros para cmdID la obtienes en:

http://msdn.microsoft.com/library/de...ods/execwb.asp

Para los parametros de OLECMDEXECOPT, consultas:

http://msdn.microsoft.com/library/de...n_a2z_5k38.asp

Y, este es un pequeño ejemplo de una implementacion que yo le di para imprimir:

Código:
 
procedure TForm1.RefreshBtnClick(Sender: TObject);
const
  OLECMDID_PRINT               = $00000006;
  OLECMDEXECOPT_PROMPTUSER     = $00000001;
begin
  Browser.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);
end;
__________________
Héctor Geraldino
Software Engineer
Responder Con Cita