I want a button on a web page to make the browser print the contents of the current window.

Now, the following code does this:
Code:
window.print()
The problem, however, is that it pops up the print dialog box and defaults to portrait view.

I would like to print immediately (with no dialog) to the default printer and in landscape view. I haven't found anyway of doing this yet.

Does anybody know how?