home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
dbase
/
printer
/
prints
/
prints.prg
Wrap
Text File
|
1986-11-12
|
2KB
|
67 lines
*********************************************************
***** DBASE III contains no commands for setting or *****
***** changing printer parameters. The following *****
***** little program can be run at any time while *****
***** in DBASE III, and allows certain printer *****
***** parameters to be changed. The printer escape *****
***** sequences presented herein are specifically *****
***** those of the Star Gemini 10X printer, and may *****
***** have to be modified for other printers. *****
***** Consult the User's Guide for your particular *****
***** printer. *****
*********************************************************
set talk off
***** Initialize printer to default settings *****
set print on
? chr(27)+chr(64)
set print off
***** Present menu of printer control choices *****
ch = ""
do while ch # "0"
clear
text
P R I N T E R C O N T R O L
1 = 10 Pitch
2 = 12 Pitch
3 = 17 Pitch
4 = Double-Strike
5 = Cancel Double Strike
6 = Boldface
7 = Cancel Boldface
8 = Italics
9 = Cancel Italics
0 = Quit this utility
endtext
wait " Enter choice: ? " to ch
set print on
do case
case ch = "1"
? chr(18)
case ch = "2"
? chr(27)+chr(66)+chr(12)
case ch = "3"
? chr(15)
case ch = "4"
? chr(27)+chr(71)
case ch = "5"
? chr(27)+chr(72)
case ch = "6"
? chr(27)+chr(69)
case ch = "7"
? chr(27)+chr(70)
case ch = "8"
? chr(27)+chr(52)
case ch = "9"
? chr(27)+chr(53)
otherwise
endcase
set print off
enddo
clear
set talk on
return