# How print horizontally?

**URL:** <https://forum.inductiveautomation.com/t/how-print-horizontally/3186>\
**Category:** Ignition\
**Created:** [August 17, 2011, 4:09pm UTC](https://forum.inductiveautomation.com/t/how-print-horizontally/3186 "2011-08-17T16:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [August 17, 2011, 4:09pm UTC](https://forum.inductiveautomation.com/t/how-print-horizontally/3186/1 "2011-08-17T16:09:41Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [August 17, 2011, 4:19pm UTC](https://forum.inductiveautomation.com/t/how-print-horizontally/3186/2 "2011-08-17T16:19:29Z")

</div>

add this  
job.orientation = system.print.LANDSCAPE

before the  
job.print()

---

<div class="post-metadata">

**Author:** ![F\_Rayon](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@F\_Rayon](https://forum.inductiveautomation.com/u/F_Rayon)\
**Post date:** [August 17, 2011, 4:28pm UTC](https://forum.inductiveautomation.com/t/how-print-horizontally/3186/3 "2011-08-17T16:28:36Z")

</div>

thanks, Dravik
