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

[REBOL] Re: Using a printer in Windows

From: al:bri:xtra at: 13-Jan-2002 11:06

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 ] ] browse File and use Rebol/View to interpret the script. And the HTML will be printed out. Andrew Martin ICQ: 26227169 http://valley.150m.com/