# System.print issue

**URL:** <https://forum.inductiveautomation.com/t/system-print-issue/59719>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 18, 2022, 12:37pm UTC](https://forum.inductiveautomation.com/t/system-print-issue/59719 "2022-05-18T12:37:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antoine\_Rvl](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Antoine\_Rvl](https://forum.inductiveautomation.com/u/Antoine_Rvl)\
**Post date:** [May 18, 2022, 12:37pm UTC](https://forum.inductiveautomation.com/t/system-print-issue/59719/1 "2022-05-18T12:37:17Z")

</div>

Hello Guys,  
i found script bellow in an old topic :  
\*obj = system.gui.getParentWindow(event) .parent \*  
\*printJob = system.print.createPrintJob(obj) \*  
\*printJob.showPrintDialog = 0 \*  
\*printJob.orientation = system.print.LANDSCAPE \*  
_printJob.print()_

this work but result is not full screen, it is adding some grey empty space on sides.  
what parameter should i change ?  
i had to blur screen to not show private datas of my client :

 ![print screen problem](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/0/20843b5f2b6af3d11c495ec2f531937a96f154ff.jpeg)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 18, 2022, 2:38pm UTC](https://forum.inductiveautomation.com/t/system-print-issue/59719/2 "2022-05-18T14:38:43Z")

</div>

> [@Antoine\_Rvl](#):
>
> system.gui.getParentWindow(event) .parent

You're getting the component _above_ the window itself. Try removing the `.parent` here. Or even going _down_ into the root container, instead of up into the parent.

---

<div class="post-metadata">

**Author:** ![Antoine\_Rvl](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Antoine\_Rvl](https://forum.inductiveautomation.com/u/Antoine_Rvl)\
**Post date:** [May 25, 2022, 3:49pm UTC](https://forum.inductiveautomation.com/t/system-print-issue/59719/3 "2022-05-25T15:49:59Z")

</div>

it is 2 windows, 1 docked window on the top part and another 1 lower part.  
so if i remove .parent it prints only the top part.  
i manage to play with margin to print it properly, but still there is this grey area not so nice to see.
