home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Basic / OTL-BBU3.DMS / in.adf / Andre / PrtLib.doc < prev    next >
Encoding:
Text File  |  1994-04-04  |  3.1 KB  |  104 lines

  1. This is a library for using the printer.device!!!
  2. There are only four commands included, but I think these are the most wanted
  3. ones...
  4.  
  5. Statement: CheckPrt
  6. ---------------------------------------------------------------------------
  7. Syntax: status.b=CheckPrt
  8.  
  9. Modes: AMIGA/BLITZ
  10.  
  11. Description:
  12.  
  13. Checks the state of the Printer and return it.
  14.  
  15. status: -1 = Printer Off
  16.   -3 = Printer Offline
  17.   -4 = Printer On
  18.  
  19. Bugs:
  20.  
  21. I had exculded this Routine, because it doesn' t worked 100%...
  22. I have now reincluded it and compiled with the newest version of the
  23. BB2 compiler...
  24. It seems that it now works 100%...
  25. ---------------------------------------------------------------------------
  26.  
  27. Statement: PrtCommand
  28. ---------------------------------------------------------------------------
  29. Syntax: PrtCommand Command,Para1,Para2,Para3,Para4
  30.  
  31. Modes: AMIGA
  32.  
  33. Description:
  34.  
  35. Send a ESC-Sequence to the printer.
  36.  
  37. Command: Escape-Sequence
  38.  
  39. Para1 - Para 4: Parameters for ESC-Sequence
  40.  
  41. Beispiel: PrtCommand 6,0,0,0,0 ;Kursiv on
  42.           PrtCommand 7,0,0,0,0 ;Kursiv off
  43. ---------------------------------------------------------------------------
  44.  
  45. Statement: PrtText
  46. ---------------------------------------------------------------------------
  47. Syntax: PrtText <STRING>
  48.  
  49. Mode: AMIGA
  50.  
  51. Description:
  52.  
  53. PrtText: Prints the text 'STRING' at your printer...
  54.          It' s the same like WriteFile(0,"PRT:"), but why have the AMIGA
  55.          a own printer.device...
  56.          So I think we should use it, right?
  57. ---------------------------------------------------------------------------
  58.  
  59. Statement: Hardcopy
  60. ---------------------------------------------------------------------------
  61. Syntax: Hardcopy ScreenPointer,X,Y,Width,Height,PrtWidth,PrtHeight,Flags
  62.  
  63. Mode: AMIGA
  64.  
  65. Description:
  66.  
  67. Prints the screen or a part of it at your printer.
  68.  
  69. ScreenPointer: Adress of the screen (Addr Screen(x))
  70. X............: \ Are the corners of the screen where we
  71. Y............: / want to start printing it to paper...
  72. Width........: Width of the screen part you want to print
  73. Height.......: Height of the screen part you want to print
  74. PrtWidth.....: Width of the print(on the paper)
  75. PrtHeight....: Height of the print(on the paper)
  76. Flags........: Printerflags...
  77.                Have a look to a documantation aout it, the most importent(?)
  78.                ones:
  79.                $40  - Centre graphic
  80.                $10  - Weidth= Maximum
  81.                $20  - Height = Maximum
  82.                $100,$200,$300,$400 - Printing quality($400 = Heighest)
  83.  
  84. Bugs:
  85.  
  86. Hm, it seems that the flags are not 100% taken...
  87. I haven' t find out why, but might be you do...
  88. I still working on it!
  89. But however, it works...
  90. ---------------------------------------------------------------------------
  91. ===========================================================================
  92.  
  93. BTW: This library is copyright 1992/93 by Andre Bergmann.
  94.      Use it on your own risk, I don' t take the responsibility for using it!
  95.      This source is PD, feel free to update it!
  96.      Please send me updates done by you and Bug Reports!
  97.      
  98.  
  99. Andre Bergmann
  100. Am Pannesbusch 39a
  101. 42281 Wuppertal 2
  102. Germany
  103. Tel: 0049/0202/702606
  104.