Take Screenshot and Email

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

If you have v8.1.28+, you can use the self.requestPrint() 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.

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