Ir al contenido


Foto

[TRUCO DELPHI] Cerrar Excel.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 09 diciembre 2016 - 02:56

[TRUCO DELPHI] Cerrar Excel.


delphi
  1. Function ExcelClose(Excel : Variant; SaveAll: Boolean): Boolean;
  2. Begin
  3. Result := True;
  4. Try
  5. ExcelCloseWorkBooks(Excel, SaveAll);
  6. Excel.Quit;
  7. Except
  8. MessageDlg('No se puedo cerrar a Excel.', mtError, [mbOK], 0);
  9. Result := False;
  10. End;
  11. End;

Saludos!


  • 1




IP.Board spam blocked by CleanTalk.