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 >
Text File  |  1991-02-07  |  2KB  |  70 lines

  1. #output Force Tools 1.1 - Printer functions
  2.  
  3. *
  4. * Hardware reset printer, this function will wait until the printer is ready.
  5. * If there is an error (timeout, out of paper) the result will ne false.
  6. function logical prn_init prototype
  7.    params value uint prn_no
  8.    
  9. *--- printer numbers
  10. #define  lpt_1    1
  11. #define  lpt_2    2
  12. #define  lpt_3    3
  13.  
  14. *************************************
  15. * NumPrinter()
  16. * Ret: Number of printers installed
  17. *
  18. FUNCTION UINT NumPrinter PROTOTYPE
  19.  
  20. *************************************
  21. * PrintFile(<Char>)
  22. * Ret: .T. if the file was printed 
  23. * Para: Filename to print
  24. *
  25. * note : Uses the printer from SET
  26. *        PRINTER TO
  27. FUNCTION LOGICAL PrintFile PROTOTYPE
  28.    PARAMS CONST CHAR
  29.    
  30. *************************************
  31. * PrintReady(<UINT>)
  32. * Ret : .T. if the selected printer 
  33. *           is on-line
  34. *
  35. FUNCTION LOGICAL PrintReady PROTOTYPE
  36.    PARAMS VALUE UINT
  37.    
  38. *************************************
  39. * PrintSend(<CHAR>, <UINT>)
  40. * Para : Charecter(s) to send 
  41. *        PrinterNo
  42. * Ret : No of char's not printed
  43. *
  44. FUNCTION UINT PrintSend PROTOTYPE
  45.    PARAMS CONST CHAR, VALUE UINT
  46.    
  47. *************************************
  48. * PrintStat(<UINT>)
  49. * Ret : Status of selected printer 
  50. *       Status Bits : 0 = time out
  51. *                     1 = unused
  52. *                     2 = unused
  53. *                     3 = I/O error
  54. *                     4 = selected
  55. *                     5 = out of paper
  56. *                     6 = acknowledge
  57. *                     7 = not busy 
  58. *
  59. *    
  60. FUNCTION UINT PrintStat PROTOTYPE
  61.    PARAMS VALUE UINT
  62.    
  63. * eof - fc_print.hdr