How print horizontally?

Hello
good morning.

I want to do is print a screen, but I want to print the sheet horizontally.

how I can do, this is the script that I have.

[color=#FF0000]def printScreen(event):
import system
window = system.gui.getParentWindow(event)
rc = window.getRootContainer()
job = system.print.createPrintJob(rc)
job.setMargins(0)
job.showPageFormat = 0
job.print()[/color]

add this
job.orientation = system.print.LANDSCAPE

before the
job.print()

thanks, Dravik