Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Word Textmarken auf Existenz prüfen? (https://www.delphipraxis.net/79609-word-textmarken-auf-existenz-pruefen.html)

Grolle 25. Okt 2006 12:04


Word Textmarken auf Existenz prüfen?
 
Hallo,
ich erstelle mit Delphi einen Brief/Serienbrief mit Hilfe einer Vorlage.
In dieser sind bestimmte Textmarken. wenn diese allerdings nicht existieren
gibts eine Exception. Kann man das irgendwie prüfen (außer jede Textmarke einzeln
mit nem Try-Except-Block) abzufangen?
Delphi-Quellcode:
WordApp.Documents.Open(pfad);
doc := WordApp.ActiveDocument;
R := Doc.Bookmarks.Item('firma').Range;
R.InsertAfter(user.ReadString(firma);
// Edit: Hat sich gerade erledigt klick...

Viele Grüße...


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:54 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