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.
window = system.gui.getParentWindow(event)
rc = window.getRootContainer()
job = system.print.createPrintJob(rc)
job.showPageFormat = 0