Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Using a printer in Windows

From: jason:cunliffe:verizon at: 12-Jan-2002 17:30

> Just add the following to my HTML dialect: > Self-Print: does [ > JavaScript "self.print();" > ] > then to get a HTML document that will print it self out (one only
needs
> to click the OK button on the print dialog on Windows MSIE6), just write: > > File: %PrintMe.html > write File HTML [ > header [Title "Auto printing HTML file"] > body [] [ > h1 "Auto printing HTML file" > "With the help of a magic word in HTML dialect!" > Self-Print > ] > ]
neat... how about adding this tweak: File: %PrintMe.html do load-thru http://www.rebol.org/script/colorize.r write File colorize HTML ;..etc.. ./Jason