![]() |
Word Speicherpfad einstellen
Hallo,
mithilfe von OLE wird eine Word-Vorlage geöffnet. Wenn der Benutzer in Word auf speichern drückt soll der Pfad voreingestellt sein. Das heißt abweichend vom Standard-Pfad. Leider kann ich keine Ahnung wie die Anweisung heißen könnte.
Delphi-Quellcode:
ist nicht das richtige.
Word.ActiveDocument.SaveAs('...')
Kann niemand helfen? |
Re: Word Speicherpfad einstellen
Hi,
der Datenpfad muss explizit gesetzt werden:
Delphi-Quellcode:
Beispiel ist für Office 2000
procedure TForm1.WordDateiSpeichern();
var FileName,FileFormat,LockComments,Password,AddToRecentFiles, WritePassword,ReadOnlyRecommended,EmbedTrueTypeFonts, SaveNativePictureFormat,SaveFormsData,SaveAsAOCELetter : OleVariant; begin WordApplication.ChangeFileOpenDirectory('C:\Daten\Test\'); FileName := 'Testform'; LockComments := False; Password := EmptyParam; AddToRecentFiles := True; WritePassword := EmptyParam; ReadOnlyRecommended := False; EmbedTrueTypeFonts :=False; SaveNativePictureFormat := False; SaveFormsData := False; SaveAsAOCELetter := False; WordApplication.ActiveDocument.SaveAs(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter); end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:14 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