var MyFile: TextFile; begin AssignPrn(MyFile); Rewrite(MyFile); Writeln(MyFile, 'Print this text'); System.CloseFile(MyFile); end;
Cheers, Ross.
----- Original Message ----- From: "Stephen Bertram" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[EMAIL PROTECTED]>
Sent: Monday, September 20, 2004 9:40 AM
Subject: [DUG] Printing to a dot matrix
Hi All
I seem to recall seeing the answer to this somewhere - perhaps someone can refresh my memory?
Using Delphi 5 I need to output directly to a bunch of dot matrix printers - I need to select the port (ideally on other workstations on the network) and output pure ASCII.
While I can use TPrinter if I have to, I really want to squirt the output using a Writeln(Text) format. The data is already in a fixed font columnar format.
TIA
Stephen
_______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
