procedure TForm1.Button1Click(Sender: TObject);
var
ItemIndex,FileName, Format, SaveChanges: OleVariant;
begin
ItemIndex := 1;
WordDocument1.ConnectTo(WordApplication1.Documents.Item(ItemIndex));
Format := wdFormatText;
FileName := 'temp.txt';
WordDocument1.SaveAs(FileName, Format);
SaveChanges := wdDoNotSaveChanges;
WordApplication1.Quit(SaveChanges);
WordApplication1.Disconnect;
end;