Re: Listbox + Print
- From: "Chris.Cheney" <Chris.CheneyXXNOSPAMXX@xxxxxxxxx>
- Date: Fri, 21 Mar 2008 19:11:03 GMT
uses
Printers;
procedure TForm1.Print1Click(Sender: TObject);
var
I: Integer;
PrintText: TextFile;
begin
with TPrintDialog.Create(Self) do
try
if Execute then
begin
AssignPrn(PrintText);
Rewrite(PrintText);
try
Printer.Canvas.Font := ListBox1.Font;
for I := 0 to ListBox1.Items.Count - 1 do
WriteLn(PrintText, ListBox1.Items[I]);
finally
CloseFile(PrintText);
end;
end;
finally
Free;
end;
end;
.
- References:
- Listbox + Print
- From: jg07
- Listbox + Print
- Prev by Date: Re: Reordering TreeNodes
- Next by Date: girl katong school tanjong school girl crossdress gyptian school girl lyrics
- Previous by thread: Listbox + Print
- Next by thread: girl katong school tanjong school girl crossdress gyptian school girl lyrics
- Index(es):