Ver Mensaje Individual
  #3  
Antiguo 11-05-2006
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is online now
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - Espańa
Posts: 18.324
Reputación: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Si quieres capturar el error (perdón que no había leído completo el mensaje anterior):

Código Delphi [-]
var
  i:HWND;
begin
  i := ShellExecute(Handle,
             'open',
             'C:\AEAT\RENT2004\mrenta2004_2.pdf',
             nil,
             nil,
             SW_SHOW);
  if (i < 32) then begin
    MessageDlg('Error, no se ha encontrado el fichero', mtError, [mbOK], 0);
  end;
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.

Última edición por Neftali [Germán.Estévez] fecha: 11-05-2006 a las 11:26:38.
Responder Con Cita