Board index » delphi » Printing in Win 1.5 Pascal

Printing in Win 1.5 Pascal

Is there any way to print output from Win 1.5 (pascal).  In Pascal 3.0 I used
the Writeln(lst,' example');

Is there any command, function to produce a printout?

thanks for any help

 

Re:Printing in Win 1.5 Pascal


Quote
Dmhusa wrote:
> Is there any way to print output from Win 1.5 (pascal).  In Pascal 3.0 I used
> the Writeln(lst,' example');

> Is there any command, function to produce a printout?

> thanks for any help

var  PRINTER:text;
begin
  assign(PRINTER,'lpt1');
  rewrite(PRINTER);
  writeln(printer,'This should print on my printer');
  close(printer);
end;

Other Threads