Autor Beitrag
sklorzy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: So 02.05.04 12:03 
Hallo,
gibt es eine Möglichkeit die ganze Liste der Listbox auszudrucken??

Danke schon mal im Voraus
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: So 02.05.04 12:22 
Nein, aber ich hab gerade gestern eine Frage hier gestallt: www.delphiforum.de/viewtopic.php?p=146765

Es ist zwar ein Problem, aber das mußt du nicht haben. Es ist auf jeden Fall eine Möglichkeit eine stringList auszudrucken. Die andere wäre es mit RichEdit Komponente.

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(
SuperS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: So 02.05.04 17:37 
Ich hab rumprobiert, aber bin zu keinen guten Ergebniss gekommen.
Ich nur dies rausgebracht:

Du brauchst:
- Button
- ListBox
- RichEdit

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
begin
RichEdit1.Text:=ListBox1.Items.Text;
begin
RichEdit1.Print(Caption);
end;
end;

_________________
Das Wissen ist nur ein Teil des Versthens.
Wirkliches Verstehen kommt erst mit der praktischen Erfahrung.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: So 02.05.04 19:51 
SuperS hat folgendes geschrieben:
Ich hab rumprobiert, aber bin zu keinen guten Ergebniss gekommen.
Ich nur dies rausgebracht:

Du brauchst:
- Button
- ListBox
- RichEdit

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
begin
RichEdit1.Text:=ListBox1.Items.Text;
begin
RichEdit1.Print(Caption);
end;
end;


Wenn ich so überlege denke ich das dein Code nciht richtig funktionieren wird.
Es würden alle Items in eine Zeile gequetscht und dann gedruckt, ich denke eher das man es so machen müsste:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
var
i : Integer;
begin
 for i:=0 to ListBox1.items.count-1 do
  begin
   RichEdit1.lines.add(ListBox1.items[i]);
  end;
 RichEdit1.print(Caption);
end;
bms
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 735

Win XP
Delphi 3, Delphi 6 PE, Delphi 2005 PE
BeitragVerfasst: So 02.05.04 19:55 
Müßte eigentlich klappen, denn Text ist bei beiden gleich. Beide sind TStrings. Es werden auch die Zeilenumbrüche übergeben.

_________________
VORSICHT: Ich behersche seit heute die Fünf-Finger-Handflächen-Herz-Explodier-Schlag-Kampf-Technik >:(