Answer the question
In order to leave comments, you need to log in
Why does WINWORD.EXE still hang in processes when programmatically closing a Word document?
Hello! Here is a code snippet in Delphi:
var
Word, Doc: OleVariant;
begin
Word:=CreateOleObject('Word.Application');
Doc:=Word.Documents.Open('c:\example.docx');
//действия с документом
Doc.Save;
Doc.Close;
Word:=UnAssigned;
end;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question