REBOL [ Title: "Can Rebol Print?" Date: 12-Oct-2008 Version: 0.1.1 File: %can-rebol-print.r Author: "mr.z" Rights: "copyright mr.z 2008" Purpose: "This script illustrate some possible methods of printing script output." Hisory: [0.1.1 12-Oct-2008 "add to browser path"] Requires: "CHP.exe or similar is needed to print if the method CHP is attempted." library: [ level: 'beginner platform: 'Windows type: [tutorial article tutorial how-to] domain: [printing] tested-under: none license: none ] ] home: what-dir ; **************************************** ; * Sample HTML Page * ; **************************************** html-page: {
Printing HTML  
REBOL can directly write an HTML file. A REBOL layout can also be converted to an HTML document.
If onload="javascript:window.print();" is in the BODY tag, the page will print when loaded.
An HTML document can be text only, text & images, or a REBOL layout image. |