Código Delphi [-] ... var WordApp: OleVariant; ... procedure Liberar_Word; begin if not VarIsEmpty(WordApp) then begin WordApp.DisplayAlerts := False; WordApp.Quit; end; end;
... var WordApp: OleVariant; ... procedure Liberar_Word; begin if not VarIsEmpty(WordApp) then begin WordApp.DisplayAlerts := False; WordApp.Quit; end; end;