home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vp21beta.zip
/
ARTLSRC.RAR
/
PRINTER.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
2000-08-15
|
1KB
|
52 lines
//█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
//█ █
//█ Virtual Pascal Runtime Library. Version 2.1. █
//█ Printer Interface Unit █
//█ ─────────────────────────────────────────────────█
//█ Copyright (C) 2000 vpascal.com █
//█ █
//▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
// To write text to the printer, simply use Write statements:
//
// Writeln(Lst, 'This is a printer test');
//
// To force a new page, call the FormFeed routine:
//
// FormFeed;
unit Printer;
{$I-,S-}
interface
var
Lst: Text;
procedure FormFeed;
implementation
const
cFormFeed = #12;
procedure InitPrinter;
begin
Assign(Lst,'LPT1');
Rewrite(Lst);
end;
procedure FormFeed;
begin
Write(Lst, cFormFeed);
Close(Lst);
InOutRes := 0;
InitPrinter;
end;
initialization
InitPrinter;
end.