(page requirements)

How to print in a hurry

If you want to print text in a hurry without fancy formatting or setting up, try something like:

var
  f : TextFile;
begin
  AssignFile( f, 'LPT1' );
  Rewrite( f );

  //
  // do your printing here...
  //
  WriteLn( f, 'hello, world!');

  CloseFile( f );
end;

 
 
Applicable Keywords : Delphi, Delphi 1.x, Delphi 2.x, Functions
 
 
 
Copyright © 2009 Chami.com. All Rights Reserved. | Advertise | Created in HTML Kit editor