Autor Beitrag
fishhed
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77


Delphi 7
BeitragVerfasst: Mo 02.04.07 13:50 
Hallo Gemeinde,

ich möchte aus einem Delphiprogramm heraus, Word öffnen und in Formularfelder bestimmte Texte eintragen.
Wie kann ich in den Formularfeldern einen Zeilenumbruch erzeugen?

So geht jedenfalls nicht: :-(
ausblenden Delphi-Quelltext
1:
Word.ActiveDocument.FormFields.Item('preis').Result := '1.'+#13+#10+'2.';					
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: Mo 02.04.07 19:49 
Hallo
ausblenden Delphi-Quelltext
1:
Result := '1.'+chr(vk_return)+'2.'					

nur ein "einfaches" Return reicht

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
fishhed Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77


Delphi 7
BeitragVerfasst: Di 03.04.07 13:55 
Ja, so tut es auch.
Letztendlich lag mein Problem aber im Excelldokument.

Trotzdem vielen Dank und schöne Grüsse!

Marcel