Autor Beitrag
Markos
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: Di 19.04.05 07:54 
Hallo,

ich habe ein Word Dokument in dem verschiedene Variablen stehen wie z.B:

<#datum>
<#wohnort>
<#briefanrede>
....

Dieser Variablen werden im Word Dokument auch ausgefüllt wenn in der Zuordnung der Variabel auch ein Wert steht. Wie kann ich es programmieren, das Delphi die Variablen aus dem Word Dokument löscht z.B. <#wohnort> wenn dieser kein Wert zu geordnet ist?

Aktuell bleibt die Variabel im Word Dokument bestehen, wenn dieser keine Wert zu geordnet ist.

Mit Textmarken möchte ich nicht arbeiten, da die für den User nicht sichtbar sind und es so viel einfacher ist.

Gruß
Markos
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Di 19.04.05 17:58 
Hallo

mir ist sowas nur in Verbindung mit seriendruckfeldern bekannt. Dort gibt es mailmerge.suppressblanklines wo du einstellen kannst, ob Leerzeilen gedruckt werden oder nicht.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
MisterBum83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 245
Erhaltene Danke: 2

WIN XP
Delphi 6
BeitragVerfasst: Di 19.04.05 18:21 
Warum ersetzt du den "Platzhalter" in Word nicht mit einem Leerstring, wenn kein Wert da ist?
Wäre ne Idee von mir....
Markos Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: Fr 22.04.05 14:11 
Hallo,

funktioniert einwandfrei :D Vielen Dank. Das ich da nicht selber drauf gekommen bin :shock: :shock:

Gruß
Markos