Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 03.06.07 11:05 
Kann man ein Richedit in eine INI-Datei im RTF speichern und wieder laden?

wie würd den das so gehen?

brauch ich um INI-Files zu speichern ne extra Komponente die ich mir runterladen muss?

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: So 03.06.07 11:14 
Wenn ich dich richtig verstehe und du wissen möchtest, wie man mit INI-Dateien arbeitet, dann schau dir mal Suche in der Entwickler-Ecke TINIFILE an.

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 03.06.07 11:30 
danke!

es geht vor allem um die frage ob man RE in RTF laden und speichern kann.

lg el
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: So 03.06.07 11:35 
Ich steh jetzt ein bisschen aufm Schlauch...

Kommts dir auf die Endung .ini an oder aufs Format??

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
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: So 03.06.07 12:12 
Hallo,
user profile iconelundril hat folgendes geschrieben:
es geht vor allem um die frage ob man RE in RTF laden und speichern kann.
grundsätzlich, ja. Aber ich halte es für wenig sinnvoll.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: So 03.06.07 12:27 
Zitat:
Probieren geht über studieren!

Versuchs doch einfach mal. Aber eigentlich sollte es gehen :)
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 03.06.07 14:00 
ok vielen dank, aber warum wenig sinnvoll?

lg el
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: So 03.06.07 14:10 
Hallo,

eine ini-datei kann keine Zeilenumbrüche -diese sind im RTF-Code enthalten- verwalten. Entfernet man nun diese Zeilenumbrüche kommt das nächste Problem, die maximale Zeichenanzahl eines Strings in einer ini ist auf 1023 Zeichen begrenzt.

Was willst Du den speichern, mehrere RTF-Texte?

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

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 03.06.07 14:13 
ein paar daten (Checkboxes, strings, ...) und ein RE. es is halt wichtig das die in einer datei sind.

lg el
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 03.06.07 14:42 
ich würde dir ja XML empfehlen. Da kannst du dann auch Streams reinschreiben.

_________________
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: So 03.06.07 20:59 
Hallo,

... oder mit TFileStream, das Tutorial von user profile iconBenBe hilft Dir dabei:
Wie man Strings speichert und liest ...
und zwei Funktionen aus dem Beitrag:
www.delphi-forum.de/viewtopic.php?t=49528

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

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 05.06.07 12:36 
@matze: nur als XML oder das RTF ins XML? Also prinzipell hab ich ja von XML null ahnung!

@Lannes: wie meinst du das? nur das RichEdit oder alles.

lg el
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 05.06.07 12:47 
Hallo,

ich meine Alles.
In user profile iconBenBEs Tutorial findest Du Code der Strings und Integer speichert und liest. Den Wert der CheckBox, ein Boolean, kann im Prinzip wie ein Integer geschrieben werden. Schreibst halt alles in eine Datei hintereinander, in der gleichen Reihenfolge kann dann wieder ausgelesen werden.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
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 05.06.07 14:52 
ich meinte, dass du das RTF ja in das XML reinsichern kannst.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 05.06.07 16:42 
gibts für XMLs auch so ne unit die einem das mit den sections macht oder müsst ich da alles selbst eingeben?

lg el
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 05.06.07 19:25 
bei den Jedis ist eine dabei. TJvSimpleXML. Die ist super einfach zu bedienen und kann auch Streams in eine XML Datei schreiben.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 05.06.07 19:36 
ok vielen danke! ich nehm an die hilfe is in JVCL Help dokumentiert oder?

lg el
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 08.06.07 10:56 
ok hab mich jetzt damit vertraut gemacht. Nur das problem ist das ich das mit dem Stream nicht hinbekomme.

Das Topic dazu (hab ein neues aufgemacht, sonst haut mich Tino wieder ;-)): www.delphi-forum.de/....php?p=444677#444677

lg el