home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
qlib.zip
/
PRDEF.DOC
< prev
next >
Wrap
Text File
|
1991-01-09
|
1KB
|
43 lines
The format for a printer definition file read by PRTDEF must be 16 lines of
valid printer control codes in numeric notation, and four lines of form data
in real numbers. For control codes the code ESC A would be entered as 27 65
and ESC 1 as 27 49. Be careful not to confuse the number 1 which is ASCII 49
with ASCII 1 which is CTL A and would be entered as 01. 02 would be ASCII two,
03 ASCII 3 and so forth.
The 20 lines must be in this order, and if any item is blank then a blank line
must be left for it.
Initialization code
Condensed print
Data 12 pitch
Letter 12 pitch
Data 10 pitch
Letter 10 pitch
Double height
Double height off
Elongate
Elongate off
Bold
Bold off
Underline
Underline off
Italics
Italics off
Top margin in lines, for example 4 means 4 lines
Bottom margin in lines
Left margin toggle, the sequence sent to signal that a left margin value follows
Page length in lines
Any line after line 20 can be used for notes as the program only reads in 20
codes, then exits.
The routine DEFPRT is designed to provide an input routine for correctly
filling out a printer definition file, and may be incorporated into your
programs to give end users a means of easily creating or altering printer
code files.