Script Library: 1238 scripts


REBOL [ Title: "Printer" Date: 3-Jul-2002 Name: 'Printer Version: 1.0.0 File: %printer.r Author: "Andrew Martin" Purpose: "Sends text to printer on //prn." eMail: %Al--Bri--xtra--co--nz Web: Caution: "Only works on Windows PCs that aren't networked!" Example: [ Printer "This goes to the printer!" Printer/Page "This prints this line and feeds a page!" ] library: [ level: 'intermediate platform: none type: 'tool domain: none tested-under: none support: none license: none see-also: none ] ] Printer: func [ "Sends text to printer on //prn." [catch] Text [string!] "The text to be printed." /Page "Append Carriage Return (CR) and Page Feed." ][ throw-on-error [ secure [ %//prn [allow write] ] write %//prn Text if Page [write/binary %//prn "^(0D)^(page)"] Text ] ]
halt ;; to terminate script if DO'ne from webpage
  • email address(es) have been munged to protect them from spam harvesters. If you are a Library member, you can log on and view this script without the munging.
  • (Al:Bri:xtra:co:nz)