Just for a change in topic, here's some OS specific (Windows 95) REBOL
code for writing to a local printer.

Printer: func [Text [string!] /Page] [
        write %//prn Text
        if Page [write %//prn "^(page)"]
        exit
        ]

Now, I'm sure there's some people that are thinking, something like
this:

Printer: func [Text [string!] /Page] [
        write %//prn either Page [join Text "^(page)"][Text]
        ]

        would be better, but I tried the above out on a networked PC and it
didn't seem to work repeatedly and reliably. The best solution was the
first. :-\

Any one have any ideas on why the second won't work, yet the first
does? When the logic for the both seems similar?

Andrew Martin
[EMAIL PROTECTED]
http://members.xoom.com/AndrewMartin/
Online @ 33,600 Baud!
-><-

Reply via email to