home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
FOXPRO
/
FCT1_12
/
FC_PRINT.HDR
< prev
next >
Wrap
Text File
|
1991-02-07
|
2KB
|
70 lines
#output Force Tools 1.1 - Printer functions
*
* Hardware reset printer, this function will wait until the printer is ready.
* If there is an error (timeout, out of paper) the result will ne false.
*
function logical prn_init prototype
params value uint prn_no
*--- printer numbers
#define lpt_1 1
#define lpt_2 2
#define lpt_3 3
*************************************
* NumPrinter()
*
* Ret: Number of printers installed
*
FUNCTION UINT NumPrinter PROTOTYPE
*************************************
* PrintFile(<Char>)
*
* Ret: .T. if the file was printed
* Para: Filename to print
*
* note : Uses the printer from SET
* PRINTER TO
*
FUNCTION LOGICAL PrintFile PROTOTYPE
PARAMS CONST CHAR
*************************************
* PrintReady(<UINT>)
*
* Ret : .T. if the selected printer
* is on-line
*
FUNCTION LOGICAL PrintReady PROTOTYPE
PARAMS VALUE UINT
*************************************
* PrintSend(<CHAR>, <UINT>)
*
* Para : Charecter(s) to send
* PrinterNo
* Ret : No of char's not printed
*
FUNCTION UINT PrintSend PROTOTYPE
PARAMS CONST CHAR, VALUE UINT
*************************************
* PrintStat(<UINT>)
*
* Ret : Status of selected printer
* Status Bits : 0 = time out
* 1 = unused
* 2 = unused
* 3 = I/O error
* 4 = selected
* 5 = out of paper
* 6 = acknowledge
* 7 = not busy
*
*
FUNCTION UINT PrintStat PROTOTYPE
PARAMS VALUE UINT
* eof - fc_print.hdr