Autor Beitrag
Feneriumpower
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16



BeitragVerfasst: So 05.12.04 01:56 
2 Fragen:

1) Wie kann ich etwas Speichern lassen, also wenn ich z.B. in einem Memo etwas schreibe und dann auf einen Speicherbutton klicke, soll er es auf die Festplatte speichern.

2) Wie kann ich es anschließend ausdrucken lassen?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 05.12.04 02:03 
1. TMemo.Lines.SaveToFile

2. Siehe Unit Printers, speziell das TPrinter-Objekt.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
yogo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 121

Windowse, Linuxe
Delphi 3 Prof., D5 Enterprise, D6 Enterprise, Kylix, Delphi 2010
BeitragVerfasst: Di 07.12.04 16:25 
Titel: Was soll dahinter?
Was muss man den hinter das TMemo.Lines.SaveToFile(oder so ähnlich) schreiben?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 07.12.04 16:29 
Hmmm, welche Information wird zum Speichern benötigt? Etwa ein Dateiname?

Edit: @Benbe: Du bist aber auch fies...TMemo.lines.savetofile zu empfehlen.

_________________
We are, we were and will not be.
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 07.12.04 23:06 
Ich hätte ihm genauso gut auch TStrings.SaveToFile empfehlen können. Nur hätte ihm das IMHO NOCH weniger geholfen. So lernt er wenigstens gleich die DOH und die TMemo-Klasse etwas besser kennen.

Achso: Genau, da kommt ein Dateiname hin. Den Salzgehalt musst du im "Sprichwörter-Thread bei den Köchen nennen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
yogo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 121

Windowse, Linuxe
Delphi 3 Prof., D5 Enterprise, D6 Enterprise, Kylix, Delphi 2010
BeitragVerfasst: Mi 08.12.04 12:23 
Titel: Wie gehts
Sag, ich möchte auch wissen wie es geht!!
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mi 08.12.04 13:19 
Titel: Re: Wie gehts
yogo hat folgendes geschrieben:
Sag, ich möchte auch wissen wie es geht!!


Mit zwei Beinen gut,
mit einem humpelts,
mit keinem nihct wirklich ...

Für Mehr Informationen bitte in der Delphihilfe unter TStrings.SaveToFile nachgucken!

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
yogo
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 121

Windowse, Linuxe
Delphi 3 Prof., D5 Enterprise, D6 Enterprise, Kylix, Delphi 2010
BeitragVerfasst: Mi 08.12.04 13:21 
Fiesling, aber OK :evil: ich machs. :evil: :twisted: