![]() |
AW: OLE in Office 365 (Word)
Hallo,
Zitat:
Danke. |
AW: OLE in Office 365 (Word)
Hallo,
also der Hauptcode ist das hier
Delphi-Quellcode:
Also mit einer Selection.
WordApp.Selection.Find.ClearFormatting;
WordApp.Selection.Find.Replacement.ClearFormatting; WordApp.Selection.Find.Text:= SL_Search[iString]; WordApp.Selection.Find.Replacement.Text := SL_Replace[iString]; WordApp.Selection.Find.Forward := True; WordApp.Selection.Find.Wrap := wdFindContinue; WordApp.Selection.Find.Format := False; WordApp.Selection.Find.MatchCase := False; WordApp.Selection.Find.MatchWholeWord := False; WordApp.Selection.Find.MatchWildcards := False; WordApp.Selection.Find.MatchSoundsLike := False; WordApp.Selection.Find.MatchAllWordForms := False; if not WordApp.Selection.Find.Execute(Replace:= wdReplaceAll) then begin //iDummy := 1; end; Wie würde es dann mit einer Range aussehen? Laut dem hier dienen Ranges nur zum Suchen ![]() Wobei hier mir Ranges versucht wurde, zu arbeiten wurde: ![]() Und das sieht schon mal ganz gut aus. ![]() |
AW: OLE in Office 365 (Word)
Ich hab leider kein Word mehr zur Hand darum ohne Gewähr, der letzte Link sieht ganz gut aus. Aber teste doch erst einmal die ganze Sache als Word-Macro und übernimm es dann nach Delphi.
Gruß K-H |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:33 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