L
lzchinaboy1
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TMDIChild.FilePrintExecute(Sender: TObject);
var
Line:Integer;
PrintText:System.Text;
begin
if PrintDialog1.Execute then
begin
AssignPrn(PrintText);
Rewrite(PrintText);
Printer.Cavas.Font:=Memo1.Font;
Writeln(PrintText,Memo1.lines[line]);
System.Close(PrintText);
end;
end;
var
Line:Integer;
PrintText:System.Text;
begin
if PrintDialog1.Execute then
begin
AssignPrn(PrintText);
Rewrite(PrintText);
Printer.Cavas.Font:=Memo1.Font;
Writeln(PrintText,Memo1.lines[line]);
System.Close(PrintText);
end;
end;