home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
REXXPRNT.ZIP
/
REXXPRNT.CMD
Wrap
OS/2 REXX Batch file
|
1990-10-02
|
2KB
|
55 lines
/* REXX print program for HP Laserjet printers 10-1-90 */
arg fileid
call charout prn, D2C(27)||D2C(69)
call charout prn, D2C(27)||D2C(40)||D2C(115)||D2C(48)||D2C(84) /* set to LINEPRINTER font */
call charout prn, D2C(27)||D2C(40)||D2C(49)||D2C(48)||D2C(85) /* set to 10U */
call charout prn, D2C(27)||D2C(40)||D2C(115)||'16.6'||D2C(72) /* set to compressed 17 char per inch */
call charout prn, D2C(27)||D2C(40)||D2C(115)||'8.5'||D2C(86) /* set to 8.5 point text */
call charout prn, D2C(27)||D2C(40)||D2C(115)||'48'||D2C(80) /* set to fixed spacing */
call charout prn, D2C(27)||D2C(38)||D2C(108)||D2C(56)||D2C(68) /* set to 8 lpi */
call lineout prn, ''
call lineout , ''
pageno = 0
lineno = 74
borderline = copies('─',130)
do while lines(fileid) > 0
if lineno = 74 then do
if pageno \= 0 then do
call lineout prn, ' '
bottomline = overlay(' continued ──────',borderline,112)
call lineout prn, bottomline
pageline = center('- Page' pageno '-',130)
call lineout prn, pageline
call charout prn, D2C(12)
end
dateline = strip(right(time('C') date('W')',' date('M') substr(date('S'),7,2)',' substr(date('S'),1,4),130),'t')
headerline = overlay(dateline,pageline)
headerline = overlay(fileid,headerline)
call lineout prn, headerline
call lineout prn, borderline
call lineout prn, ''
lineno = 1
pageno = pageno + 1
call charout , D2C(27)||'[s'
call charout , 'Printing Page '||pageno
call charout , D2C(27)||'[u'
end
call lineout prn, ' '||linein(fileid)
lineno = lineno + 1
end
call lineout prn, ''
bottomline = overlay(' end-of-file ──────',borderline,110)
call lineout prn, bottomline
pageline = center('- Page' pageno '-',130)
call lineout prn, pageline
call charout prn, D2C(27)||D2C(69)
call lineout fileid
call lineout prn
call lineout , ''
/* FIDONET: Matt Johnson @1:376/32.0 */
/* or USENET: uunet!usceast!uscacm!32!Matt.Johnson */