Einzelnen Beitrag anzeigen

Benutzerbild von roga
roga

Registriert seit: 15. Jun 2008
Ort: Sachsen-Anhalt
109 Beiträge
 
Delphi XE8 Professional
 
#5

Re: Listbox drucken

  Alt 14. Dez 2008, 21:28
Vielleicht: Listbox1.Items.Strings[Line]);
...oder direkt auf Drucker-Canvas zeichnen:

Delphi-Quellcode:
Printer.BeginDoc;
with Printer.Canvas do
begin
  Font.Name := 'Arial';
  Font.Color := clBlack;
  Font.Height := 42;
  Font.Style := [];
  YPos := 200;
  for Line := 0 to ListBox1.Items.Count - 1 do
  begin
    TextOut(200, YPos, Listbox1.Items.Strings[Line]);
    inc(YPos, 50);
  end;
end;
Printer.EndDoc;
Ronald
  Mit Zitat antworten Zitat