![]() |
Re: Mit Word eine *.rtf öffnen und abspeichern unter *.doc
Es lag am getActiveOLEObject
nun ist es:
Delphi-Quellcode:
und so geht es :)procedure TForm1.Button1Click(Sender: TObject); var V:OleVariant; Result:String; begin V := CreateOleObject('Word.Application'); V.Documents.open (FileName:='c:\test.rtf', ConfirmConversions:=False, Format:=wdOpenFormatAuto) ; V.ActiveDocument.SaveAs (FileName:='c:\test2.doc', FileFormat:=wdFormatText, AddToRecentFiles:=True) ; V.Quit; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:26 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz