tags:

views:

158

answers:

3

How can I print a page in landscape in javascript?

+1  A: 

I dont think javascript can dictate how a user chooses to print the page.

You might want to think about first converting the page into pdf, and allow the user to download that?

Chii
+3  A: 

At the most you can set

@page { size: A4 landscape }

in CSS

Take a look at

CSS Print Profile

rahul
+1  A: 

You cant. You can prompt the print dialog with window.print(), and from the printer settings choose the printer landscape format.

Elzo Valugi