Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 25.10.05 18:07 
Hallo !
Ich stehe vor der Aufgabe den Text, der in einem Richedit gespeichert ist in einen String hineinzuschreiben. Diesen String muss ich später auch wieder quasi in RTF text umwandeln können. Es müssen bei diesen Aktionen natürlich alle Formatierungen die im Text getätigt worden sind erhalten bleiben.
Wie kann ich das machen, ohne vorher die RTF Datei zu speichern und dann diese zu laden um an den String zu kommen ?

Danke,
Matze

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Di 25.10.05 18:54 
Hallo,

da war doch mal was :gruebel:
da :arrow:
[RichEdit, VCL Win32] zusammenhängende Doku irgendwo verfügbar?

darin die beiden Codes müssten das sein was Du suchst.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
function GetRTFFromRichEdit(aRichEdit: TRichEdit): String;
//...
procedure SetRTFToRichEdit(sRTF: String;aRichEdit: TRichEdit);
//...

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 26.10.05 16:14 
danke! genau das brauche ich !

_________________
In the beginning was the word.
And the word was content-type: text/plain.