procedure printmemo(lst:TStrings);
var
i,line:integer;
begin
line:=0;
printer.begin
doc;
for i:=0 to lst.count-1do
begin
printer.canvas.textout(0,line,lst);
line:=line+abs(printer.canvas.font.height);
if (line>=printer.pageheight) then
printer.newpage;
end;
printer.enddoc;
end;