How to Print HTML Direct

How i can print direct to the printer a html file

Web ? Desktop ?

Web and desktop

Web : tell the user to print the window or executeJavaScript in a button :
http://www.hypergurl.com/printpage.html
Desktop : use HTMLViewer Print method http://documentation.xojo.com/index.php/HTMLViewer.Print

ok
thanks