# Take Screenshot and Email

**URL:** <https://forum.inductiveautomation.com/t/take-screenshot-and-email/87863>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 25, 2024, 8:33pm UTC](https://forum.inductiveautomation.com/t/take-screenshot-and-email/87863 "2024-03-25T20:33:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eagel007](https://avatars.discourse-cdn.com/v4/letter/e/7bcc69/32.png) [@Eagel007](https://forum.inductiveautomation.com/u/Eagel007)\
**Post date:** [March 25, 2024, 8:33pm UTC](https://forum.inductiveautomation.com/t/take-screenshot-and-email/87863/1 "2024-03-25T20:33:21Z")

</div>

Hi there,

we have extensively use charts in perspective, is there anyway we could take screenshot and email ? We use these screenshots in presentations.

Please let me know.

Thanks

---

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [March 25, 2024, 9:54pm UTC](https://forum.inductiveautomation.com/t/take-screenshot-and-email/87863/2 "2024-03-25T21:54:36Z")

</div>

If you have v8.1.28+, you can use the [self.requestPrint()](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/scripting-in-perspective/perspective-component-methods#requesting-print) component method, which you can then save to your local machine, and then attach to an email.

To accomplish what you want without any interaction with the user, you'll probably need to call `self.requestPrint()`, then save to a location accessible by the Ignition server, and then call `system.net.sendEmail` with the `attachmentData` specified (the data type of `attachmentData` is bytes, so you'll need to convert your attachment to bytes or use the `system.file.readFileAsBytes` function).

That's a very rough outline of what it sounds like you want, and if that's not it, please add more context / information in your question.

---

<div class="post-metadata">

**Author:** ![Eagel007](https://avatars.discourse-cdn.com/v4/letter/e/7bcc69/32.png) [@Eagel007](https://forum.inductiveautomation.com/u/Eagel007)\
**Post date:** [March 25, 2024, 11:46pm UTC](https://forum.inductiveautomation.com/t/take-screenshot-and-email/87863/3 "2024-03-25T23:46:04Z")

</div>

Thank you for suggestion. I will definitely take a look at this !
