> The code below doesn't work in Windows 98. Maybe it's because i dont use rebol/command.
Works OK on Windows XP and Windows 98 using Rebol/Core and Rebol/View for me (I just tried it). Are you sure that your computer is set up correctly? Andrew Martin ICQ: 26227169 http://valley.150m.com/ -><- ----- Original Message ----- From: "Philippe Oehler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 11, 2002 10:40 PM Subject: [REBOL] Re: Using a printer in Windows > The code below doesn't work in Windows 98. Maybe it's because i dont use > rebol/command. > > I think i have to produce html text to browse and then print. > Or produce a PDF document. > > > > > Philippe wrote: > > > I want to know if it's possible to user a printer from a rebol program ? > > > > Try something like this: > > Rebol [] > > 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 > > ] > > ] > > > > ] > > > > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
