# Print Screen Button

**URL:** <https://forum.inductiveautomation.com/t/print-screen-button/53052>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [November 14, 2021, 11:31pm UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052 "2021-11-14T23:31:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh3](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@josh3](https://forum.inductiveautomation.com/u/josh3)\
**Post date:** [November 14, 2021, 11:31pm UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/1 "2021-11-14T23:31:57Z")

</div>

Hi,

I’m having trouble with getting the print script to work,

job = system.print.createPrintJob(event.source.parent)  
job.setShowPrintDialog(0)  
job.print()

I’m running this script from within a configured event on a momentary.

I get the following error when I use the button in the designer preview mode:

Error running action ‘dom.onMouseDown’ on project/site/area/Processing Statistics/Components/PrinterButton@D$0:1/root/Button: AttributeError: ‘com.inductiveautomation.ignition.common.script.Imm’ object has no attribute ‘print’

Regards,

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 15, 2021, 1:04am UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/2 "2021-11-15T01:04:00Z")

</div>

That function is Vision Client scope only, you can’t use it in Perspective.

I’m not sure if it’s possible to capture a screenshot and print it from Perspective.

> [@Perspective Screenshot Capture](https://forum.inductiveautomation.com/t/perspective-screenshot-capture/24312/2):
>
> This would currently require a custom module - capturing screenshots from web browsers is a surprisingly complicated problem. Your best bet in the short term might be to try to train users to use built-in browser tools - new versions of Firefox, for instance, have a very powerful built in screenshotting tool. What’s the use case of these screenshots, out of curiosity?

---

<div class="post-metadata">

**Author:** ![josh3](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@josh3](https://forum.inductiveautomation.com/u/josh3)\
**Post date:** [November 15, 2021, 1:47am UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/3 "2021-11-15T01:47:20Z")

</div>

Thanks for your response,

Does that include a control+P type function? where the operators need to print to PDF or a local printer.

Regards,

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 15, 2021, 2:03am UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/4 "2021-11-15T02:03:20Z")

</div>

They can hit ctrl-P and let the browser print.

---

<div class="post-metadata">

**Author:** ![josh3](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@josh3](https://forum.inductiveautomation.com/u/josh3)\
**Post date:** [November 15, 2021, 2:32am UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/5 "2021-11-15T02:32:52Z")

</div>

hahaha, that’s a fair point.

But I’m changing over a brownfields site from Factory Talk and they want the exact same functionality.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 15, 2021, 2:35am UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/6 "2021-11-15T02:35:14Z")

</div>

Vision may have been a better choice for 1:1 functionality. Building for the browser is a very different paradigm.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 30, 2021, 2:24pm UTC](https://forum.inductiveautomation.com/t/print-screen-button/53052/9 "2021-12-30T14:24:54Z")

</div>

Don’t hold your breath waiting for this. Browser security pretty much prohibits anything like it. Maybe possible in the future in Perspective Workstation.
