Hi. Want to print all lines in a memo but, I tried with Uses Printer,Printers but nothing works!
I have got this errormessage from Lazarus!
Identifier not found "AssignPrn(POutput)"
Can anyone see what's wrong?
Uses ?
var
POutput : TextFile;
I : LongInt;
begin
if PrintDialog1.Execute then begin // if Print Dialog OK
AssignPrn(POutput); // assign printer
ReWrite(POutput); // open printer
Printer.Canvas.Font := Memo1.Font; // assign current font
for I := 0 to Memo1.Lines.Count - 1 do begin // loop
WriteLn(POutput,Memo1.Lines
); // print one line
end;
CloseFile(POutput); // close printer
end
end; // mfPrintClick
Thanks in advance