Re: advanced printing


Posted by Jean Claude Servaye on September 01, 2000 at 03:08:52:

In Reply to: advanced printing posted by Dave on September 01, 2000 at 01:07:27:

: I know it's more like a general programming question than a Delphi related one, but, anyway: how do i send characters right to printer(i mean LPT1)? how do i perform a carriage return while printing? how do i order printer to go to next page(paper)??......
: Should i use ASCII table?

: Thanks!!!!!!!!!!!
var
F : TextFile;

Begin
AssignFile(F,'lpt1:');
Rewrite(F);

Writeln(F,'this is the first line');
Writeln(F,'') ; // this is a blank line
Writeln(F, #12); // this is a top of form ( new page)

CloseFile(F);



Related Articles and Replies: