# Print a chart in a page in landscape orientation

**URL:** <https://forum.inductiveautomation.com/t/print-a-chart-in-a-page-in-landscape-orientation/9412>\
**Category:** Ignition\
**Created:** [December 8, 2014, 10:23am UTC](https://forum.inductiveautomation.com/t/print-a-chart-in-a-page-in-landscape-orientation/9412 "2014-12-08T10:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [December 8, 2014, 10:23am UTC](https://forum.inductiveautomation.com/t/print-a-chart-in-a-page-in-landscape-orientation/9412/1 "2014-12-08T10:23:41Z")

</div>

Hi,

I want to print a chart in landscape orientation, but when I execute my script only my chart is in landscape orientation not my page. Do you know how to do this ? My chart is attached in PDF format.

Here is my script :

`
job = system.print.createPrintJob(event.source.parent.getComponent("Chart"))
job.setMargins(0.5)
job.zoomFactor = -1
job.showPageFormat = 4
job.pageWidth = 8.5
job.pageHeight=11
job.orientation = system.print.LANDSCAPE
job.print()`

Thanks,  
[chart.pdf](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f36bddb262679a55ac37f56d36c8bf1c76c641ea.pdf) (140 KB)
